Re: Help Understanding Proper Key Event Handling
Re: Help Understanding Proper Key Event Handling
- Subject: Re: Help Understanding Proper Key Event Handling
- From: Seth Willits <email@hidden>
- Date: Wed, 20 Feb 2008 20:51:43 -0800
On Feb 20, 2008, at 8:26 PM, Francisco Tolmasky wrote:
I'm currently writing an app with several custom views that respond
to key events (such as
arrow keys moving objects, etc). I've looked over the docs at Apple
regarding the flow of key
events, but I was wondering if anyone had some "best practices"
advice for me. If I understand
correctly, performKeyEquivalent: will get sent to my custom view
regardless of whether it is first
responder or not, so should I manually be checking within
performKeyEquivalent my first
responder status?
It sounds as if you're really looking for the keyDown: event.
Also, will having lots of views potentially slow down the
interpretation of
key events?
No more than having lots of views generally slowing your computer down.
--
Seth Willits
_______________________________________________
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