Re: NEWBIE: double backslash in NSStrings
Re: NEWBIE: double backslash in NSStrings
- Subject: Re: NEWBIE: double backslash in NSStrings
- From: Lance Bland <email@hidden>
- Date: Sat, 17 Aug 2002 22:20:02 -0400
On Saturday, August 17, 2002, at 09: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?
use 2 backslashes...
[NSString stringWithCString:"\\"]
------------------------------------
Lance Bland
mailto:email@hidden
web charts at
http://www.vvi.com/products/chart
_______________________________________________
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.