Re: NEWBIE: double backslash in NSStrings
Re: NEWBIE: double backslash in NSStrings
- Subject: Re: NEWBIE: double backslash in NSStrings
- From: ber <email@hidden>
- Date: Sun, 18 Aug 2002 03:57:23 +0200
I'm seeing the double backslash in a table that's displaying an NSArray
of NSStrings (as well as in the debugger.)
brian
On Sunday, August 18, 2002, at 03:51 AM, Mike Shields wrote:
If you are seeing what's in the string by NSLog'ing or in gdb, the
output from those escapes the backslash. If you create the string that
way, that's the string that's in there. It's just an artifact of
printing it out that is causing the problem you're seeing.
Mike
On Saturday, August 17, 2002, at 07:42 PM, ber wrote:
If I have:
char foo[2];
foo[0] = 92; // backslash
foo[1] = 0;
[ NSString stringWithCString:foo] produces "\\" (two backslashes).
How to create an NSString with one backslash from foo?
Thanks,
brian
_______________________________________________
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.