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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to