Re: 2D menu
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.