Re: Intercepting keyDown event from NSComboBox
Re: Intercepting keyDown event from NSComboBox
- Subject: Re: Intercepting keyDown event from NSComboBox
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 13 Feb 2008 15:41:18 -0500
On Feb 13, 2008 12:37 PM, John Stiles <email@hidden> wrote:
> There are technotes on returning a custom field editor which you can
> look at. All you really need to do is subclass NSTextView and implement
> a -keyDown: or -insertText: in your subclass, then provide that text
> view as the field editor for the combo box. That should solve it.
I'm still really confused as to why everyone is recommending
subclassing the first responder instead of catching the event as it
enters the window. To accomplish your goal, you need to change the
event dispatching logic, which is not a property of the first
responder, but the mechanism that gets the event to it.
And then what happens if you get another control in the window? Are
you going to subclass this control too?
--Kyle Sluder
_______________________________________________
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