discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stringWithString question


From: Pete French
Subject: Re: stringWithString question
Date: Sun, 03 Jul 2005 23:22:12 +0100

> character of str will be a backslash. I would expect that behaviour 
> for stringWithFormat: But, should escaping the backslash be necessary 
> when using stringWithString?

Because ObjC has the same quoting rules for a string which C does - the
backslash's are not interpreted as part of the format remember, they are
part of the language for entering untypable characters. Anywhere you have
a string you can use backslash escaped characters in both C and ObjC.

-bat.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]