Re: keycode to unicode in NSEvent
Re: keycode to unicode in NSEvent
- Subject: Re: keycode to unicode in NSEvent
- From: John Stiles <email@hidden>
- Date: Thu, 8 Mar 2007 11:17:59 -0800
I think NSEvent uses 16-bit unicode characters.
'A' is 65 in ASCII and in Unicode. (For the first 128 characters,
ASCII and Unicode match.)
On Mar 8, 2007, at 11:06 AM, Andy Wiese 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?
_______________________________________________
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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