Re: keycode to unicode in NSEvent
Re: keycode to unicode in NSEvent
- Subject: Re: keycode to unicode in NSEvent
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 8 Mar 2007 11:10:28 -0800
On 3/8/07, Andy Wiese <email@hidden> wrote:
In NSEvent, how does keycode get converted to unicode?
In a simple test Cocoa-in-Carbon app, NSEvent key events appear with
unicode char info, no prob.
The real Cocoa-in-Carbon application uses
kEventTextInputUnicodeForKeyEvent in Carbon, to get input from a
unicode keyboard, and there my NSEvent key events don't have unicode--
I haven't determined if its ascii or just the platform MacRoman, but
the 'A' key is just and 'A' char, if you know what I mean.
What have I likely done to screw up unicode input?
What does -[NSEvent characters] return you in this situation?
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/occ/instm/NSEvent/characters>
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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