Re: NSTask Says: launch path not accessible
Re: NSTask Says: launch path not accessible
- Subject: Re: NSTask Says: launch path not accessible
- From: Ed Baskerville <email@hidden>
- Date: Sun, 24 Apr 2005 12:35:08 -0700
Or, more accurately, the launch path of the task will be evaluated
relative to the current working directory of your app, *not* the
directory you set for the launched task. By default, the launched task
inherits the current working directory of the app, which is why it
seemed to work when you put your tool in build/ (when launching from
Xcode) or / (when launching outside Xcode).
--Ed
On Apr 24, 2005, at 12:25 PM, Ondra Cada wrote:
Adam,
On 24.4.2005, at 21:18, Adam wrote:
[ModcapEditorCmdlineTask setLaunchPath:@"ModcapEditorCmdline"];
[ModcapEditorCmdlineTask setCurrentDirectoryPath:
pathToModcapEditorCmdline];
CWD and the launch path have nothing in common. Just use
[ModcapEditorCmdlineTask setLaunchPath:[pathToModcapEditorCmdline
stringByAppendingPathComponent:@"ModcapEditorCmdline"]];
Incidentally, it is a bad style to use capitalized variables. The
ModcapEditorCmdlineTask should be named modcapEditorCmdlineTask.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden