• 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: Programatically determining @executable_path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically determining @executable_path


  • Subject: Re: Programatically determining @executable_path
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 30 Jan 2006 09:42:20 -0600


On 30 Jan 2006, at 8:32 AM, Dave McCaldon wrote:

Is there a way at runtime, to programatically determine what the value of @executable_path is for the current process?

If you're a Cocoa application, try [[NSBundle mainBundle] executablePath].


If you're a Carbon application:
CFBundleGetMainBundle; CFBundleCopyExecutableURL; CFURLCopyFileSystemPath


If you're working with a BSD tool, you can look at argv[0].

	-- F


-- Fritz Anderson -- http://www.manoverboard.org/ Consulting Programmer -- http://resume.manoverboard.org/ Step into Xcode, coming out late January -- http://six.manoverboard.org/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Programatically determining @executable_path (From: Dave McCaldon <email@hidden>)

  • Prev by Date: Re: Programatically determining @executable_path
  • Next by Date: RE: Programatically determining @executable_path
  • Previous by thread: Re: Programatically determining @executable_path
  • Next by thread: RE: Programatically determining @executable_path
  • Index(es):
    • Date
    • Thread