Mailing Lists: Apple Mailing Lists

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

Unicode palette SendTextInputEvent fails when Unicode IM is active



Man, that's a way-too-long subject line. Anyway, here's what's up.
I have a Unicode palette (of the Carbon Component + Cocoa UI variety) that uses SendTextInputEvent when the component gets user input. So far so good.


Bug reports from a couple of Tiger users woke me up to the fact that I'm getting paramErr from SendTextInputEvent whenever there's a Unicode input method active. Regular 'U.S.' (a 'Roman' IM) shows no problems. 'U.S. Extended' (a Unicode IM) causes this problem. Romaji and other parts of Kotoeri are all 'Japanese' IMs and thus are OK. Arabic, Thai, and Devanagari are among those I tested, which caused incorrect behavior, and all of which are Unicode.

A little messing around with gdb/Xcode shows this chain:
- my component
-- SendTextInputEvent
--- SendUnicodeTextAsUnicodeForKeyEvent
---- UpgradeScriptInfoToTextEncoding... returns paramErr

My component is sending the two required parameters to SendTextInputEvent:
kEventParamTextInputSendComponentInstance, and kEventParamTextInputSendText.

I've said it before and I guess I'm saying it again...
"Help me, Deborah Goldsmith!" ;-)

Thanks folks,
Brian 'Moses' Hall
http://www.blugs.com/IPA/
_______________________________________________
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.