• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rightMouseDown not working as documented?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >rightMouseDown not working as documented? (From: Murat Konar <email@hidden>)
 >Re: rightMouseDown not working as documented? (From: Corbin Dunn <email@hidden>)
 >Re: rightMouseDown not working as documented? (From: Jens Alfke <email@hidden>)
 >Re: rightMouseDown not working as documented? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: rightMouseDown not working as documented?
  • Next by Date: Re: Imitating Behavior of a Sheet Window
  • Previous by thread: Re: rightMouseDown not working as documented?
  • Next by thread: Re: rightMouseDown not working as documented?
  • Index(es):
    • Date
    • Thread