Re: Keyboard handlers
Re: Keyboard handlers
- Subject: Re: Keyboard handlers
- From: Graham Cox <email@hidden>
- Date: Tue, 15 Mar 2011 16:58:30 +1100
[NSResponder keyDown:]; and [NSResponder interpretKeyEvents:];
hint: both windows and views subclass NSResponder
--Graham
On 15/03/2011, at 10:07 AM, Tom Jeffries wrote:
> I need to intercept repeat keys in one window of an application. I see some
> references from about 10 years ago about the GLUT key handling routines, but
> they don't seem to work. In particular glutIgnoreKeyRepeat(TRUE) does not do
> anything. Should I be using other code? Is there a better way to trap
> events?
>
> NSEvent looks like it might work, is there any sample code I can reference?
>
> Thanks for any help, Tom Jeffries
> _______________________________________________
>
> 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