Re: NSEvent virtual keycodes
Re: NSEvent virtual keycodes
- Subject: Re: NSEvent virtual keycodes
- From: Christopher Hansen <email@hidden>
- Date: Mon, 18 May 2009 20:34:54 -0700 (PDT)
Lol! In the process of moving from Carbon to Cocoa, I ripped out the Carbon.framework. I just thought there might be a better place to include them from.
Thanks, Jim.
Christopher
________________________________
From: Jim Correia <email@hidden>
To: email@hidden
Sent: Monday, May 18, 2009 9:08:08 PM
Subject: Re: NSEvent virtual keycodes
On Mon, May 18, 2009 at 10:44 PM, Christopher Hansen
<email@hidden> wrote:
> The NSEvent Reference documentation for the keyCode method states that "the
> value returned is the same value returned in the kEventParamKeyCode when using
> Carbon Events."
>
> Are the virtual key codes available in a Cocoa-based header? The only virtual
> keycode definitions I've been able to find are in Carbon/HIToolbox/Events.h.
That is the only place they are currently defined.
Including that header will not give your code cooties. That's
currently the correct place to pick up the constants from.
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden