Re: Dir of app
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