Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use Unicode with Carbon



Felipe Monteiro de Carvalho

I would like to created a carbon application and use UTF-8 encoded
strings for it's controls (if necessary I can also first convert to
UTF-16 and then send the string to Carbon.

How can I do this? I tryed something like this:

  ignoreResult := CreatePushButtonControl(nil, GetQDRect(200, 200, 100, 50),
   CFSTRP('Showˆ±ˆ£‰Çˆ½ Dialog'), button2);

I don't know what CFSTRP (Pascal equivalent of CFSTR?) is, but CFSTR (the C macro) doesn't handle encodings. You'll need to create your strings another way (perhaps in a .strings file in your bundle).
--


David Dunham     A Sharp, LLC
Voice/Fax: 206 783 7404     http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.