Нашел у себя в черновиках. Не уверен, что я этот код где-либо использовал, но для затравки сойдёт.
Object-C:
const char *path; path = [[[NSBundle mainBundle] bundlePath] UTF8String];
Или так:
CFBundleRef bundle; bundle = CFBundleGetMainBundle(); CFURLRef res; res = CFBundleCopyResourcesDirectoryURL(bundle); CFStringRef resStr; resStr = CFURLCopyFileSystemPath(res, kCFURLPOSIXPathStyle); char path[8192]; CFStringGetFileSystemRepresentation(resStr, path, sizeof(path));


