Re: keyDown:not receiving Command + key events, space bar, left/right arrows
Re: keyDown:not receiving Command + key events, space bar, left/right arrows
- Subject: Re: keyDown:not receiving Command + key events, space bar, left/right arrows
- From: Vince DeMarco <email@hidden>
- Date: Thu, 3 Mar 2005 08:01:33 -0800
On Mar 3, 2005, at 7:21 AM, Luc Vandal wrote:
Excuse my ignorance, but what would be the view class (I'm a Cocoa
newbie!). The window has 3 views (2 text views and one tree view),
so should I make one of them the first responder? Right now, my
model class is the delegate so it can handle keyDown but as I said
earlier, I need to be able to receive every keyDown event.
Maybe the way I'm doing it right now is not the right way.
Thanks for your help!
you could subclass the window and do it there or as someone else
suggested do it at the application levels sendEvent:
I would do this at the window level.
vince
Luc
On 2-Mar-05, at 7:29 PM, Vince DeMarco wrote:
On Mar 2, 2005, at 4:14 PM, Luc Vandal wrote:
By the way, I'm handling keyDown and performKeyEquivalent in the
controller class (which is the delegate).
Luc
On 2-Mar-05, at 6:20 PM, Vince DeMarco wrote:
- (BOOL)performKeyEquivalent:(NSEvent *)theEvent
You need to do the keyDown: and performKeyEquivalent: in the view
class.
Vince
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >keyDown:not receiving Command + key events, space bar, left/right arrows (From: Luc Vandal <email@hidden>) |
| >Re: keyDown:not receiving Command + key events, space bar, left/right arrows (From: Vince DeMarco <email@hidden>) |
| >Re: keyDown:not receiving Command + key events, space bar, left/right arrows (From: Luc Vandal <email@hidden>) |
| >Re: keyDown:not receiving Command + key events, space bar, left/right arrows (From: Vince DeMarco <email@hidden>) |
| >Re: keyDown:not receiving Command + key events, space bar, left/right arrows (From: Luc Vandal <email@hidden>) |