• 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
Foolish question about NSStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Foolish question about NSStrings


  • Subject: Foolish question about NSStrings
  • From: Chris Ridd <email@hidden>
  • Date: Wed, 27 Nov 2002 19:09:31 +0000

How do you construct a static NSString in source code that contains
arbitrary Unicode characters while keeping the source code in ASCII?

What I want to do is something like this:

NSString *foo = @"Price is \u20ac99.95";

I was expecting something like "\uxxxx" but the compiler doesn't like that.
None of the obvious documentation (gcc docs, c preprocessor docs, Objc-C
Programming Language) discusses this, and a few searches on mamasam didn't
turn anything useful up apart from a similar (and unanswered!) question.

Cheers,

Chris
_______________________________________________
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.

  • Prev by Date: Re: NSTextContainer subclass question
  • Next by Date: "Subclassing" NIB files
  • Previous by thread: Re: Light DB Question
  • Next by thread: Re: Foolish question about NSStrings
  • Index(es):
    • Date
    • Thread