• 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
generating escaped representation of string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

generating escaped representation of string


  • Subject: generating escaped representation of string
  • From: matt neuburg <email@hidden>
  • Date: Tue, 12 Aug 2003 20:25:50 -0700

I wish to convert an NSString to a representation where escape characters are used, as they would look if you were inputting the corresponding literal. For example I want a return character to appear as \r and an ASCII 1 character to appear as \x01. Then I want this string to be editable and convert back the result to a normal NSString, so that if the user enters \r it becomes a return character. Is there some utility function that will do this for me? Thx - m.

--------
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Prev by Date: Re: Multiprocessor Support
  • Next by Date: Mutable Copying
  • Previous by thread: RE: Tons of fun w/NSComboBox
  • Next by thread: Re: generating escaped representation of string
  • Index(es):
    • Date
    • Thread