Re: rightMouseDown not working as documented?
Re: rightMouseDown not working as documented?
- Subject: Re: rightMouseDown not working as documented?
- From: Murat Konar <email@hidden>
- Date: Fri, 22 Jan 2010 17:27:35 -0800
The descriptions for mouseDown: et. al. (in NSResponder's docs) all
say "The default implementation simply passes this message to the next
responder."
NSControl documents the special behavior of its implementation of
mouseDown:. NSView has no mention of any special behavior with regard
to its version of rightMouseDown:.
_murat
On Jan 22, 2010, at 5:07 PM, Corbin Dunn wrote:
On Jan 22, 2010, at 4:57 PM, Jens Alfke wrote:
On Jan 22, 2010, at 4:20 PM, Corbin Dunn wrote:
NSView doesn't call up the responder chain for rightMouseDown:. It
calls -menuForEvent:, and if non nil, presents the contextual menu.
Please log a bug requesting our documentation to clarify this, or
asking us to change the behavior if you were expecting something
else.
I had a look at the overview of event handling, and the stuff I saw
said that mouse-moved and keyboard events follow the responder
chain, but not mouse-down/up events.
-mouseDown: in NSView will forward up. -rightMouseDown: won't (see
my previous message). However, -mouseDown: in NSControl will not
forward -- it is overridden to do cell tracking.
corbin
_______________________________________________
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