• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Escaping white space in an NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Escaping white space in an NSString
      • From: Sherm Pendley <email@hidden>
    • Re: Escaping white space in an NSString
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Only One Reason to ever use Transient Properties in Core Data
  • Next by Date: Re: Menu item with 'title' bound is always enabled. Bug?
  • Previous by thread: Re: NSTextView - Having to call setFrame twice to work?
  • Next by thread: Re: Escaping white space in an NSString
  • Index(es):
    • Date
    • Thread