• 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: GetProcessBundleLocation() -- no good in background agents!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GetProcessBundleLocation() -- no good in background agents!


  • Subject: Re: GetProcessBundleLocation() -- no good in background agents!
  • From: Jim Correia <email@hidden>
  • Date: Wed, 25 Mar 2009 19:52:10 -0400

On Mar 25, 2009, at 7:20 PM, Jerry Krinock wrote:

/* Use this code to build a Cocoa Command-Line tool and place
the product in Contents/MacOS of any application.  Then
doubleclick it.  Watch the log in the Terminal window and
un-hide and watch your dock.

There are a couple of edge cases you will run into if you place auxiliary executables into the MacOS folder an execute them from there.


Besides the one you mention, you can (in certain situations) end up with an incorrect entry in the LS database which will cause the wrong executable to be launched when the user double clicks on your app in the Finder.

I recommend putting aux executables in

.../Contents/Helpers/...

as it avoids these issues. (And have filed an ER asking for this to become an officially sanctioned location for both bundled and unbundled helpers.)

Jim
_______________________________________________

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: GetProcessBundleLocation() -- no good in background agents!
      • From: Jerry Krinock <email@hidden>
References: 
 >GetProcessBundleLocation() -- no good in background agents! (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: GetProcessBundleLocation() -- no good in background agents!
  • Next by Date: Re: Two view controllers in one set of files (Noob question)
  • Previous by thread: Re: GetProcessBundleLocation() -- no good in background agents!
  • Next by thread: Re: GetProcessBundleLocation() -- no good in background agents!
  • Index(es):
    • Date
    • Thread