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: Ross Carter <email@hidden>
- Date: Thu, 12 Feb 2009 10:58:04 -0500
On Feb 11, 2009, at 10:21 PM, Tom wrote:
However, I've found that when an NSTextView receives a keyDown event
that doesn't handle, it doesn't bother to send the event down the
responder chain and just calls NSBeep().
I expect that there isn't a keyDown event that NSTextView doesn't
handle. It sends them all to -interpretKeyEvents. The events go
through the system input manager and get back to the NSTextView in the
form of -insertText: or -doCommandBySelector:. It is
doCommandBySelector: that is firing the beep. You can set a breakpoint
on NSBeep to see the call stack.
Ross
_______________________________________________
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