• 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
Re: processName and Bundle Name -- the same?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >processName and Bundle Name -- the same? (From: Stuart Malin <email@hidden>)

  • Prev by Date: nsarraycontroller "auto rearrange content"
  • Next by Date: Re: Analyzing Core Data Conflict List
  • Previous by thread: processName and Bundle Name -- the same?
  • Next by thread: Re: processName and Bundle Name -- the same?
  • Index(es):
    • Date
    • Thread