processName and Bundle Name -- the same?
processName and Bundle Name -- the same?
- Subject: processName and Bundle Name -- the same?
- From: Stuart Malin <email@hidden>
- Date: Tue, 3 Feb 2009 11:12:14 -1000
In order to locate certain application-specific directories, I use the
application's name (say, for example <user_home_directory>/Library/
<app_name>
Presently I am using
[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"]
to get the application name.
(in my info.plist, the Bundle Name is set from $(PRODUCT_NAME).
I suspect that I could alternatively use
[[NSProcessInfo processInfo] processname]
to get the processName.
Is one of these approaches better than another?
Is there a difference?
Perhaps the process name is derived from the bundle name?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden