Re: Programatically determining @executable_path
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