• 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: 2D menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2D menu


  • Subject: Re: 2D menu
  • From: email@hidden
  • Date: Sat, 23 Feb 2002 12:11:49 -0800

I am currently developping a pair of subclasses of NSMenu and NSMenuView
to handle 2D menus (grid menus). I came to an end except for one thing:
The title displayed in the NSMenuItemCell is not vertivally centered
like in the standard menus. It appears to stick the bottom of the menu
item rectangle. I have read many times all the API's of related cocoa
classes but i only saw controls for the horizontal offset. The only
vertical information a menu item cell seems to have in order to draw
itself is the rectangle provided by NSMenuView rectOfItemAtIndex but
does not give any depth info.

Normally, I should not need to subclass NSMenuItemCell.

Are there any hints, suggestion, code to help me?

NSMenuItemCell subclasses from NSCell, NSButtonCell and NSActionCell. I'd try the methods defined in those superclasses. That said, I have no idea how much NSMenuItemCell uses its superclass behavior and how much it just does its own thing...

Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: +poseAsClass and instance variables
  • Next by Date: Re: How to patch the layout or some chars?
  • Previous by thread: 2D menu
  • Next by thread: How to patch the layout or some chars?
  • Index(es):
    • Date
    • Thread