site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com - Kevin On Apr 19, 2005, at 5:42 PM, Peter Bierman wrote: Hi, Is there a way in OS X to get the full path of a program where it's being executed? I need to know the location where the user stores my program (along with some configuration files), to set up its running environment. Look at NSBundle You can get your app bundle path with NSString *path = [[NSBundle mainBundle] bundlePath]; _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... To be pedantic, look at CFBundle, which is available in Darwin and therefore on-topic for this list. At 4:10 PM -0700 4/19/05, w.o.b wrote: http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSBundle.html For resources, use the other NSBundle APIs to find them. NSBundle can handle finding things by name, file extension, and localization. -pmb This email sent to site_archiver@lists.apple.com