• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
processName and Bundle Name -- the same?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: processName and Bundle Name -- the same?
      • From: "Sean McBride" <email@hidden>
    • Re: processName and Bundle Name -- the same?
      • From: Benjamin Dobson <email@hidden>
  • Prev by Date: NSTreeController vs. NSMenu
  • Next by Date: Re: Core Data, Garbage Collection and SQL Store
  • Previous by thread: NSTreeController vs. NSMenu
  • Next by thread: Re: processName and Bundle Name -- the same?
  • Index(es):
    • Date
    • Thread