Re: Getting a bullet into a NSString
Re: Getting a bullet into a NSString
- Subject: Re: Getting a bullet into a NSString
- From: Shaun Wexler <email@hidden>
- Date: Tue, 14 Mar 2006 12:32:16 -0800
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];
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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