What are the 64-bit replacements for the two methods -[NSMenuItemCell menuView] and -[NSMenuItemCell setMenuView:] of the NSMenuItemCell class?
How can I obtain the same results?
What are the 64-bit replacements for the two methods -[NSMenuItemCell menuView] and -[NSMenuItemCell setMenuView:]
Share
The
NSMenuItemCellandNSMenuViewhave never been used to draw menus in any release version of Mac OS X. The following is an excerpt from the Mac OS X Developer Release Notes:(I’m not sure of the exact timeline of pre-Public beta Mac OS X, but for “Developer Preview 3”, I’d guess we’re talking around the late 1990s here).
For more info on how menus are currently implemented, see Application Menu and Pop-up List Programming Topics: How Menus Work
As 一二三 alluded to, you use
NSMenualong withNSMenuItemto implement menus. In OS X 10.5 and greater, you can use customNSViewinstances inNSMenuItems using the-setView:method.