• 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: Adding commandline batch mode to Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Adding commandline batch mode to Cocoa app
      • From: Carsten <email@hidden>
References: 
 >Adding commandline batch mode to Cocoa app (From: Carsten <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: "Tom Harrington" <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: Carsten <email@hidden>)

  • Prev by Date: Re: Help with this code
  • Next by Date: How to make whole view be drop target for small subview
  • Previous by thread: Re: Adding commandline batch mode to Cocoa app
  • Next by thread: Re: Adding commandline batch mode to Cocoa app
  • Index(es):
    • Date
    • Thread