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 09:31:17 +0100
23 mar 2008 kl. 09.10 skrev Carsten:
/usr/bin should normally be for programs used by the system during
startup, if I understand correctly, and /usr/sbin for system programs
used after /usr has been mounted. /usr/local/bin really ought to be
the correct place for user scripts and programs.
I agree. I would recommend /usr/local/bin if you're only targeting
Leopard. Tiger and previous versions of Mac OS X does not come with /
usr/local and doesn't have it in the user's path.
I am not sure what the advantage of using an NSBundle over a script
is. The location (/usr/bin in your suggestion) is important here, as
long as it is in the path.
My idea was that you could have the graphical application and any
command line tools inside your application bundle. Many applications
does that and puts a symlink when it is being used for the first time
in /usr/bin that links to the tool inside the application bundle. The
problem with that is that the symlink will break if the application
bundle is moved or renamed.
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