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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to