Re: NEWBIE: double backslash in NSStrings
Re: NEWBIE: double backslash in NSStrings
- Subject: Re: NEWBIE: double backslash in NSStrings
- From: Mike Shields <email@hidden>
- Date: Sat, 17 Aug 2002 19:51:07 -0600
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.