Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App names



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.