• 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
Re: Simulating (or obtaining) menubar effect in a Cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulating (or obtaining) menubar effect in a Cell


  • Subject: Re: Simulating (or obtaining) menubar effect in a Cell
  • From: Benjamin Dobson <email@hidden>
  • Date: Tue, 24 Mar 2009 07:47:47 +0000


On 24 Mar 2009, at 01:46:13, Tobias Zimmerman wrote:

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.

In what way does NSPopUpButtonCell act incorrectly? It seems to work for me, but obviously, I don't know exactly what your target is._______________________________________________


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


References: 
 >Simulating (or obtaining) menubar effect in a Cell (From: Tobias Zimmerman <email@hidden>)

  • Prev by Date: Re: De-Mystifying NSCell
  • Next by Date: Re: Remove action on NSArrayController bound to table causes index beyond bounds
  • Previous by thread: Simulating (or obtaining) menubar effect in a Cell
  • Next by thread: Re: Simulating (or obtaining) menubar effect in a Cell
  • Index(es):
    • Date
    • Thread