When I run my program in Project Builder the "current directory" seems to be different than when I launch my program from the Finder.
Specifically, I've got a "data" folder which is copied into the Resources folder as part of the build process. When I run the program from Project Builder, attempts to open files in the "data" folder fail with a file-not-found error. When I launch the executable from the Finder there's no problem at all.
Has anyone else happened upon this problem before? If so, have you found a solution? For now I'm just using a symlink in the build directory, which implies that the "current directory" is the "build" folder when running from PB.
Specifically, I've got a "data" folder which is copied into the Resources folder as part of the build process. When I run the program from Project Builder, attempts to open files in the "data" folder fail with a file-not-found error. When I launch the executable from the Finder there's no problem at all.
Has anyone else happened upon this problem before? If so, have you found a solution? For now I'm just using a symlink in the build directory, which implies that the "current directory" is the "build" folder when running from PB.