discuss-gnustep
[Top][All Lists]
Advanced

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

stringWithString question


From: Rob Burns
Subject: stringWithString question
Date: Sun, 03 Jul 2005 14:14:45 -0700

NSString str = [NSString stringWithString: @"\10, 11, 12, 13"];

If I have that line of code, the first character of str will be a comma. if I add another backslash at the beginning, the first character of str will be a backslash. I would expect that behaviour for stringWithFormat: But, should escaping the backslash be necessary when using stringWithString?

Thanks
Rob





reply via email to

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