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

2D menu


  • Subject: 2D menu
  • From: jerome LAURENS <email@hidden>
  • Date: Sat, 23 Feb 2002 09:59:45 +0100

Hi all,

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?

TIA
_______________________________________________
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: What to do?
  • Next by Date: How to patch the layout or some chars?
  • Previous by thread: Re: Dealing with NSPopupButton
  • Next by thread: Re: 2D menu
  • Index(es):
    • Date
    • Thread