Re: processName and Bundle Name -- the same?
Re: processName and Bundle Name -- the same?
- Subject: Re: processName and Bundle Name -- the same?
- From: Benjamin Dobson <email@hidden>
- Date: Tue, 3 Feb 2009 21:39:58 +0000
On 3 Feb 2009, at 21:12:14, Stuart Malin wrote:
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?
The executable name and bundle name can be set separately, and I
believe the process name is the same as the executable name.
So I would say to go for the first one.
_______________________________________________
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