Re: NSTask launchpath - space
Re: NSTask launchpath - space
- Subject: Re: NSTask launchpath - space
- From: David Remahl <email@hidden>
- Date: Mon, 6 Oct 2003 01:19:20 +0200
On 5 okt 2003, at 23.23, Alastair J.Houghton wrote:
On Sunday, October 5, 2003, at 08:06 pm, David Dauer wrote:
[theTask setLaunchPath:@"/Volumes/My\ Mac/usr/tool"]
I don't think that's enough "\" characters; C will change "\ " back
into " " in the string. Try using two backslash characters or
surrounding the entire path with quotes. Regardless of whether that
works or not, you should probably report it to Apple as a bug at
http://bugreporter.apple.com
Kind regards,
Alastair.
Try _no_ backslashes. They're not needed in the launch path. In the
shell, they are used to escape the spaces, which would otherwise act as
an argument delimiter. No such need in the launch path passed to
NSTask. The same is true for the elements in the arguments array.
/ Rgds, David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.