• 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
PopUp and PullDown buttons behaving differently with NSViews included in their menus on mouse down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PopUp and PullDown buttons behaving differently with NSViews included in their menus on mouse down


  • Subject: PopUp and PullDown buttons behaving differently with NSViews included in their menus on mouse down
  • From: Michal Antonic <email@hidden>
  • Date: Fri, 12 Jun 2009 17:47:50 +0200

Hi,
I have an NSPopUpButton with several menu items. Each menu item has an associated custom NSView.


When I click the button, menu appears.

Then, I push the mouse button down somewhere outside the menu and inside the application window, and hold.

This is where the behaviour starts to differ for NSPopUpButton's pull down mode and pop up mode.

When the NSPopUpButton is in pull down mode, the menu is dismissed immediately after I push the mouse button down.

When the NSPopUpButton is not in pull down mode, the menu remains in place, and is dismissed only after I release the mouse button.

This same behaviour can be seen in the MenuItemView example, so it is not related to my application.

I'd like to know, is there some rationale behind this behaviour, or is it a bug? Is there a way to make the menu dismiss on mouse down when the NSPopUpButton is not in the pull down mode?

Thanks,
Miso
_______________________________________________

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


  • Prev by Date: Re: dumb question
  • Next by Date: Card Game (like Spider-Solitaire) in Cocoa -- Conceptual ideas needed
  • Previous by thread: Re: Missing something about initialization
  • Next by thread: Card Game (like Spider-Solitaire) in Cocoa -- Conceptual ideas needed
  • Index(es):
    • Date
    • Thread