Re: Getting a bullet into a NSString
Re: Getting a bullet into a NSString
- Subject: Re: Getting a bullet into a NSString
- From: Ben Lachman <email@hidden>
- Date: Tue, 14 Mar 2006 15:44:12 -0500
On Mar 14, 2006, at 3:32 PM, Shaun Wexler wrote:
On Mar 14, 2006, at 9:55 AM, Ben Lachman wrote:
What's a good way of getting a bullet char ("•") into a NSString?
I was using:
[NSString stringWithUTF8String:"• "]
...but that stopped working when I reorganized my code (not sure
why, but I meant to make sure I was doing the right way anyway).
Any suggestions?
Change the File Encoding format of your .m file to Unicode
(UTF-8). Xcode uses Western (MacOS Roman) by default.
More appropriately it is: [NSString stringWithFormat:@"%C", 0x2022];
Using 0x2022 brings up endian issues though, right? This works
great, but is there an endian independent solution?
->Ben _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden