Re: how to get the location of a program
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_cla... You can get your app bundle path with NSString *path = [[NSBundle mainBundle] bundlePath]; -pmb _______________________________________________ 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... At 4:10 PM -0700 4/19/05, w.o.b wrote: For resources, use the other NSBundle APIs to find them. NSBundle can handle finding things by name, file extension, and localization. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman