I got a "file not found error"...

My program worked fine when run from PB and now I get this error…
getcwd and chdir (#include ) to do so.
The way the current working directory is set in OS X varies in function of how an application is launched.
The current working directory of the application can be set to very different places. The only workaround is to always use NSBundle methods to locate your application. If you need to change the working directory (or find out what it is), you can use the POSIX functions