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 <jim.corr...@pobox.com>
To: Cocoa-dev@lists.apple.com
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
<christopher.han...@yahoo.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/christopher.hansen%40yahoo.com

This email sent to christopher.han...@yahoo.com




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to