Re: NEWBIE: double backslash in NSStrings
Re: NEWBIE: double backslash in NSStrings
- Subject: Re: NEWBIE: double backslash in NSStrings
- From: Andrew Pinski <email@hidden>
- Date: Sat, 17 Aug 2002 21:52:24 -0400
On Saturday, August 17, 2002, at 09:42 , 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?
Are you using NSLog to see the result?
If you are that is the problem, the NSString will have only one
blackslash.
NSLog has a bug in it where it will print out two instead of one
backslash.
This has been discussed before check the archives for more information.
Thanks,
Andrew Pinski
_______________________________________________
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.