Re: Adding commandline batch mode to Cocoa app
Re: Adding commandline batch mode to Cocoa app
- Subject: Re: Adding commandline batch mode to Cocoa app
- From: Marcus <email@hidden>
- Date: Sun, 23 Mar 2008 06:46:34 +0100
23 mar 2008 kl. 00.01 skrev Carsten:
The script installation in a more central place is an interesting
thought. Is /usr/local/bin the Apple-sanctioned place for
user-installed commandline utilities, rather than something like (the
non-existent) /Users/<username>/bin? I could also install such a
script alongside the .app bundle, which is a thought which had crossed
my mind before I decided to ask more experienced Mac developers, but
that might lead to path problems or long paths again, of course.
The problem with /usr/local/bin is that it does not exist on most Macs
and therefore you will also have to find out a way to put in in the
user's path. I think that most apps uses /usr/bin due to that reason.
One alternative is to put it inside the application bundle and then
use a small Foundation tool inside /usr/bin and use NSBundle to figure
out during runtime where the bundle is stored.
Marcus
_______________________________________________
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