Re: NSTask launchpath - space
Re: NSTask launchpath - space
- Subject: Re: NSTask launchpath - space
- From: Rainer Brockerhoff <email@hidden>
- Date: Sun, 5 Oct 2003 20:59:41 -0300
At 14:29 -0700 05/10/2003, email@hidden wrote:
>
Date: Sun, 05 Oct 2003 20:31:57 +0200
>
From: David Dauer <email@hidden>
>
>
How can I make NSTask's setLaunchPath accepting paths with spaces?
>
[theTask setLaunchPath:@"/Volumes/My Mac/usr/tool"]; //won't work!
>
Having spaces or special characters in volume names can cause weird behavior in some circumstances.
That said, escaping the spaces with \ works only in a shell, it doesn't work with actual path strings.
In your case, what may be happening is that the volume name has an invisible suffix number - this happens under some circumstances. Drag your "My Mac" volume onto XRay, (or check out the /Volumes directory in the Terminal) and you'll probably see that it's mounted as "My Mac 1" or "My Mac 2".
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Weblog:
http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
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.