[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 protected]) > > 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/graham.cox%40bigpond.com > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
