Re: Escaping white space in an NSString
Re: Escaping white space in an NSString
- Subject: Re: Escaping white space in an NSString
- From: Greg Guerin <email@hidden>
- Date: Wed, 20 May 2009 23:08:52 -0700
Bruce Johnson wrote:
The problem is that the path has white spaces scattered in the string.
And I need to pass the unix path to a CLI application. The CLI app
croaks on the white spaces (for obvious reasons)
Post your croaking code. You seem to have some misapprehensions
about how command-line arguments work, and without seeing the actual
malfunctioning code, it's difficult to diagnose a correct fix.
I also would like it to work in both Leopard and iPhone.
I don't think iPhone allows NSTask, but I could be wrong.
Check your iPhone API. If you don't see an NSTask class, or the C
function system() or fork() or execve(), then it's unlikely you can
do what you're asking for. Last time I looked, iPhone's child-
process capability was intentionally restricted by Apple.
What CLI were you planning to run on iPhone? What did you want this
CLI to do? There may be an API that provides the desired feature.
Impossible to say, though, unless you describe what you're really
trying to do.
-- GG
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden