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 PROTECTED]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/aki%40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to