Escaping white space in an NSString
Escaping white space in an NSString
- Subject: Escaping white space in an NSString
- From: Bruce Johnson <email@hidden>
- Date: Wed, 20 May 2009 22:23:26 -0700
I have a unix path in an NSString via [[NSBundle bundleForClass: [self
class]] pathForResource: etc.. etc..
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)
Is there a standard Cocoa way of escaping the white spaces like is
done in the Terminal Application (I'm not looking for percent escapes)
that has eluded my searches today?
I also would like it to work in both Leopard and iPhone.
Thanks
--
----
Bruce Johnson
email@hidden
_______________________________________________
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