Re: NSString Constants and Escapes
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.