• 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
Re: where is the basic NSString literal escape documentation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: where is the basic NSString literal escape documentation?


  • Subject: Re: where is the basic NSString literal escape documentation?
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 19 Apr 2010 18:11:12 -0700

On Apr 19, 2010, at 6:02 PM, Kyle Sluder wrote:

> On Mon, Apr 19, 2010 at 5:44 PM, Matt Neuburg <email@hidden> wrote:
>> Supposing you were a complete C / Objective-C beginner. How would you find
>> out what escape sequences are permitted in an NSString literal (that is,
>> with @"...")? For example, K&R doesn't know about \uNNNN (backslash-u
>> followed by four hex digits), but of course that is now legal (though it was
>> not always). What documentation would tell the user about this? Thx - m.
>
> I use the printf(3) manpage.

That's good on format-strings and stuff you can do with %, but that isn't what I'm asking about. I'm asking about straightforward NSString literals, such as @"this\nsort\tof\u2022thing". You can learn about the \n and \t from K&R, but how would you learn about \u2022?_______________________________________________

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: where is the basic NSString literal escape documentation?
      • From: Aki Inoue <email@hidden>
References: 
 >where is the basic NSString literal escape documentation? (From: Matt Neuburg <email@hidden>)
 >Re: where is the basic NSString literal escape documentation? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: where is the basic NSString literal escape documentation?
  • Next by Date: Re: where is the basic NSString literal escape documentation?
  • Previous by thread: Re: where is the basic NSString literal escape documentation?
  • Next by thread: Re: where is the basic NSString literal escape documentation?
  • Index(es):
    • Date
    • Thread