Re: runtime execution path for NSTask
Re: runtime execution path for NSTask
- Subject: Re: runtime execution path for NSTask
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 13 Jul 2007 13:22:49 -0600
On Jul 13, 2007, at 1:04 PM, Chris Heimark wrote:
If a command line program and Cocoa app are in same directory, how
do I tell NSTask that executable is in same path (not relative) as
the launching Cocoa app?
Use NSBundle to get the path of the executable. Don't ever rely on
the state of the PWD.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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