Simulating (or obtaining) menubar effect in a Cell
Simulating (or obtaining) menubar effect in a Cell
- Subject: Simulating (or obtaining) menubar effect in a Cell
- From: Tobias Zimmerman <email@hidden>
- Date: Mon, 23 Mar 2009 21:46:13 -0400
- Thread-topic: Simulating (or obtaining) menubar effect in a Cell
Hello all-
I am working with an NSMatrix, and I would like one cell of the Matrix to
act just like an item in the menu bar. Specifically: Single clicking should
open a menu; holding the mouse down should open the menu and then close it
when released; when selected the item should highlight/invert just like an
item in the menubar.
I have played with NSButtonCell, NSPopUpButtonCell, and other subclasses of
NSCell, but I can¹t seem to hit on the right combination of options to
replicate the behavior of a menubar item. Can anyone suggest the
appropriate combination of elements that would achieve this effect? If it
isn¹t possible to do ³out of the box², then suggestions for subclassing
NSCell would be welcome.
Thanks
Tobias
_______________________________________________
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