• 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: no mouseDown on dismissing context menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >no mouseDown on dismissing context menu (From: Georg Seifert <email@hidden>)

  • Prev by Date: Re: CAAnimation finished ?
  • Next by Date: Re: settings to build for 10.5 on 10.6?
  • Previous by thread: no mouseDown on dismissing context menu
  • Next by thread: NSValueTransformer problem with NSTextField update
  • Index(es):
    • Date
    • Thread