• 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: Dir of app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dir of app


  • Subject: Re: Dir of app
  • From: Justin Anderson <email@hidden>
  • Date: Tue, 18 Dec 2007 15:33:42 -0500

Plus it makes updating your program harder, since drag and drop replacement of the app bundle with a new release deletes all of those custom scripts. And then there's the issue of global versus user scripts -- keeping everything in the app bundle makes it impossible to have secure per-user customization since anyone with admin rights can delete anyone else's scripts.

On Dec 18, 2007, at 3:12 PM, Gregory Weston wrote:

For the internal scripts, you shouldn't be building paths manually. You should use the utility methods provided by NSBundle, invoked on your app's main bundle.

For external scripts, I don't agree that "the cleanest way to do that is to define a folder relative to the app location." I think the cleanest way to do it is to document that your app will look for user-provided scripts in /Library/Application Support/YourApp and ~/Library/Application Support/YourApp and then do so. You're correct that there *are* a number of apps that behave like you plan to, but that number is quite small and I'd suggest that a lot of people are annoyed by support folders cluttering up /Applications or by app's requiring that they be in specific locations, absolute or relative to some other information.

_______________________________________________

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: Dir of app
      • From: Uli Kusterer <email@hidden>
References: 
 >Re: Dir of app (From: Gregory Weston <email@hidden>)
 >Re: Dir of app (From: "Wesley Smith" <email@hidden>)
 >Re: Dir of app (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: Core Data SQLite store problems (predicates with ANY)
  • Next by Date: Re: Making custom key-commands
  • Previous by thread: Re: Dir of app
  • Next by thread: Re: Dir of app
  • Index(es):
    • Date
    • Thread