Re: NSTask Says: launch path not accessible
Re: NSTask Says: launch path not accessible
- Subject: Re: NSTask Says: launch path not accessible
- From: Ondra Cada <email@hidden>
- Date: Sun, 24 Apr 2005 21:25:27 +0200
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:
This email sent to email@hidden