Re: no mouseDown on dismissing context menu
Re: no mouseDown on dismissing context menu
- Subject: Re: no mouseDown on dismissing context menu
- From: Peter Ammon <email@hidden>
- Date: Thu, 17 Sep 2009 12:19:37 -0700
On Sep 17, 2009, at 11:03 AM, Georg Seifert wrote:
Hi,
If I show a context menu in my view and then click somewhere in the
view, mouseDown for the view is not called. Subsequent mouseDragged
are triggered.
The view returns YES in acceptsFirstMouse and acceptsFirstResponder.
What do I miss?
Georg_______________________________________________
Hi Georg,
This is by design. A click that dismisses a menu should not also
trigger whatever was clicked, because it would be easy to accidentally
close a window or do something else undesirable.
The one (intentional) exception is dragging windows.
-Peter
_______________________________________________
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