Re: NSTextView and keyDown: in the responder chain
Re: NSTextView and keyDown: in the responder chain
- Subject: Re: NSTextView and keyDown: in the responder chain
- From: Tom <email@hidden>
- Date: Thu, 12 Feb 2009 13:21:40 +1000
On 12/02/2009, at 1:06 PM, Graham Cox wrote:
On 12 Feb 2009, at 1:59 pm, Tom wrote:
Is this a bug in NSTextView or am I missing something?
Have you actually set the next responder of the field editor/text
view? I think you have to actually do that explcitly (-
setNextResponder:)
--Graham
Yes. I've overriden keyDown on one of the NSTextView objects and
checked that the responder chain is correct. In the override, if I
bypass the text view with:
[[self nextResponder] keyDown:event]
then the event is sent down the whole chain, but if I call:
[super keyDown:event]
it beeps and the event doesn't go anywhere.
Kind regards,
Tom
_______________________________________________
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