Re: App names
Re: App names
- Subject: Re: App names
- From: Gregory Weston <email@hidden>
- Date: Sun, 31 Aug 2008 19:42:05 -0400
John Joyce wrote:
When dealing with applications (application bundles) by name or path,
in Cocoa, when does it make a difference whether you use
App Name.app
example:
Front Row.app
or:
/Applications/Front Row.app
versus
App Name
example:
Front Row
or:
/Applications/Front Row
This seems to be pretty important, and I'm curious when and to what
degree I should be cautious about the naming used in code.
What are you really trying to do? If you're trying to access the
package as a directory, then of course you need to use the real name.
If you're trying to do something else with it...well it's entirely
possible you shouldn't care about "the naming used in code" at all.
It would, for example, not be a best practice to hard-code the string
"TextEdit.app" into your program.
_______________________________________________
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