• 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: NSString Constants and Escapes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString Constants and Escapes


  • Subject: Re: NSString Constants and Escapes
  • From: David Reed <email@hidden>
  • Date: Sun, 6 Jun 2004 09:28:47 -0400

Use a double backslash: \\s rather than \s.

David.

On Sunday, Jun 6, 2004, at 09:10 US/Eastern, Sam McCandlish wrote:

I am writing a program that need to use NSString constants that have backslashes in them. The compiler warns me "unknown escape sequence '\s'". How do I stop the compiler from parsing these backslashes? Thanks!

Sam
_______________________________________________
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.
_______________________________________________
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.


References: 
 >NSString Constants and Escapes (From: Sam McCandlish <email@hidden>)

  • Prev by Date: Re: NSString Constants and Escapes
  • Next by Date: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
  • Previous by thread: Re: NSString Constants and Escapes
  • Next by thread: Text editing fields with shadows
  • Index(es):
    • Date
    • Thread