• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting a bullet into a NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Getting a bullet into a NSString (From: Ben Lachman <email@hidden>)
 >Re: Getting a bullet into a NSString (From: Shaun Wexler <email@hidden>)
 >Re: Getting a bullet into a NSString (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: Getting a bullet into a NSString
  • Next by Date: Re: Getting a bullet into a NSString
  • Previous by thread: Re: Getting a bullet into a NSString
  • Next by thread: Re: Getting a bullet into a NSString
  • Index(es):
    • Date
    • Thread