PopUp and PullDown buttons behaving differently with NSViews included in their menus on mouse down
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