Cannot create file using Cocoa (Apple) with objective-C : I'm using xCode to create MacOS application with Cocoa(Objective-C).

I happen to create a text file  when running my app with the button Run inside xCode, but the problem is that the file is not created when I run my application from the directory  Products/Release/

has it something to do with permissions (?) 