Prevent NSPopupButton from showing its menu
Prevent NSPopupButton from showing its menu
- Subject: Prevent NSPopupButton from showing its menu
- From: Eric Blanpied <email@hidden>
- Date: Mon, 16 Oct 2006 21:47:57 -0700
I've got a subclass of NSPopupButton that I need to only show its
menu when a modifier key is held down. I can see a few ways to detect
the click (override mouseup(), use
NSPopUpButtonWillPopUpNotification, etc.), but I'm not sure how to
prevent the menu from showing when the modifier key isn't down. I
suppose I could have the menu be empty and add the appropriate items
only if the key is down, but I'm not at all sure that's the smart
approach.
Any advice on both issues (best way to detect click, best way to
prevent menu) would be great.
Thanks!
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden