• 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: ASL & Unicode in Xcode's Console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASL & Unicode in Xcode's Console


  • Subject: Re: ASL & Unicode in Xcode's Console
  • From: Aki Inoue <email@hidden>
  • Date: Wed, 29 Oct 2008 10:23:42 -0700

Sean,

Thanks for following up to my comment 8-).

Yes, we do support non-ASCII characters in CFString/NSString literals with the compiler shipped with Xcode 3.0 and later.
The compiler does recognize the CFSTR() macro in non-Objc source files and both the macro and @"" notion in ObjC files.


The documentation is not updated to reflect the new functionality, yet. Filing bugs would certainly help.

Note I realized that some of you might have experienced issues embedding non-ASCII characters even with Xcode 3.x compilers earlier this year.
The functionality was not enabled for some beta versions of a certain SDK we're not supposed to discuss here 9-)


Aki
"the man behind NSString/CFString Unicode magic"

On 2008/10/29, at 7:16, Sean McBride wrote:

On 10/29/08 1:27 AM, Jason Coco said:

That is no longer necessary in 10.5 / Xcode 3.  You can use
Unicode in
string literals in Objective-C.

Why do you say this? I thought that I may have missed something, but looking back through all the documentation, all the warnings about only including 7-bit ASCII characters in string literals still exist... even in the most recent updated documentation.

ISTR seeing this in the release notes somewhere, but can't find it now either. Anyway, see

http://lists.apple.com/archives/Cocoa-dev/2008/Apr/msg01885.html

Well, I still can't find anything that says this other than somebody's
statement on a mailing list...

Aki's not just a 'somebody' but a member of Apple's Cocoa team. There
are several posts in the archives about this being supported now. IIRC,
it only works in .m/.mm files, not .c/.cpp.


the three
most recently updated documents that apple put out dealing with
strings all specifically say that string
literals (CFStringRef, NSConstantString and c style string constants)
all must be 7-bit ascii encoded

Please file a bug against the docs.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >ASL & Unicode in Xcode's Console (From: Karl Moskowski <email@hidden>)
 >Re: ASL & Unicode in Xcode's Console (From: Jason Coco <email@hidden>)
 >Re: ASL & Unicode in Xcode's Console (From: "Sean McBride" <email@hidden>)
 >Re: ASL & Unicode in Xcode's Console (From: Jason Coco <email@hidden>)
 >Re: ASL & Unicode in Xcode's Console (From: "Adam R. Maxwell" <email@hidden>)
 >Re: ASL & Unicode in Xcode's Console (From: Jason Coco <email@hidden>)
 >Re: ASL & Unicode in Xcode's Console (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: file references in CoreData
  • Next by Date: Re: file references in CoreData
  • Previous by thread: Re: ASL & Unicode in Xcode's Console
  • Next by thread: Re: ASL & Unicode in Xcode's Console
  • Index(es):
    • Date
    • Thread