• 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: NSString Drawing Accents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString Drawing Accents


  • Subject: Re: NSString Drawing Accents
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 14 Apr 2003 18:28:05 -0500

At 9:12 AM +1000 4/15/03, Karl Goiser wrote:
Is there a step I am missing?

C source code files use 7-bit ASCII encoding. Therefore you can't rely on the @"" construct for 8-bit strings.

You can use NSLocalizedString(@"asciiRepresentation", @"comment") to refer to the string instead of just @"asciiRepresentation", and then include a Localizable.strings file that contains the full Unicode string for the asciiRepresentation key, and everything will be handled for you automatically.

See also mmalcolm crawford's article (with Bill Cheeseman) on Cocoa localization at Stepwise.

<http://www.stepwise.com/Articles/Technical/2003-04-03.01.html>

It's a very good overview, and NSLocalizedString is so incredibly easy to use it's hard *not* to use it everywhere...

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSString Drawing Accents (From: Karl Goiser <email@hidden>)

  • Prev by Date: Saving Custom Attributes
  • Next by Date: Re: BSD sockets and Cocoa
  • Previous by thread: NSString Drawing Accents
  • Next by thread: Re: NSString Drawing Accents
  • Index(es):
    • Date
    • Thread