I have a OS X application as a .app package which can reside in any arbitrary location in the filesystem. Is there a way to find the current path of the package programmatic
Building off the argv[0] version above, you can also get the path from:
argv[0]
NSArray* arguments = [[NSProcessInfo processInfo] arguments]; NSString* exe = [args objectAtIndex:0];
from init or applicationDidFinishLaunching
init
applicationDidFinishLaunching