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:50:25 -0800
On Mar 14, 2006, at 12:44 PM, Ben Lachman wrote:
On Mar 14, 2006, at 3:32 PM, Shaun Wexler wrote:
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?
No, it is endian-agnostic. 0x2022 is a short that represents the
Unicode ID of the glyph, and %C translates this into the UTF-8 byte
sequence E2 80 A2, in that order, in the string.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
"I refuse to answer that question on the grounds that I don't know
the answer." -- Douglas Adams
_______________________________________________
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