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

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