Re: Correct usage of replaceOccurencesOfString:withString:options:range
Re: Correct usage of replaceOccurencesOfString:withString:options:range
- Subject: Re: Correct usage of replaceOccurencesOfString:withString:options:range
- From: James McConnell <email@hidden>
- Date: Sat, 26 Feb 2005 13:35:02 -0600
On 2/25/05 4:15 PM, "Justin Spahr-Summers" <email@hidden>
wrote:
> The NSTask docs say that the arguments do not undergo shell expansion,
> thus you do not need to escape spaces.
>
> On Fri, 25 Feb 2005 6:12:34 +0000, email@hidden
> <email@hidden> wrote:
>> Could someone please illustrate the correct usage of this method from
>> NSMutableString? I have a string that represents a path to a file on the
>> filesystem. If there are any spaces in the path (such as a folder name), I
>> need to escape those spaces with a "\" so I can use them as an argument to an
>> NSTask running a command-line tool.
So if there is a path as part of an argument to an NSTask, I don't need to
escape the spaces? Sweetness, I thought I did. Thanks for the info
everyone.
James
_______________________________________________
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