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 (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 [EMAIL PROTECTED]

Reply via email to