• 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: Finlay Dobbie <email@hidden>
  • Date: Sun, 6 Jun 2004 14:21:37 +0100

On 6 Jun 2004, at 14:10, 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!

Escape them.

@"\\s" will be the constant NSString "\s".

-- Finlay
_______________________________________________
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: NSString Constants and Escapes
  • Next by Date: Re: NSString Constants and Escapes
  • Previous by thread: NSString Constants and Escapes
  • Next by thread: Re: NSString Constants and Escapes
  • Index(es):
    • Date
    • Thread