Back in the old days, subclassing this view would let you customize the look of menus. It’s now deprecated functionality, and actually doesn’t do anything anymore. To do any custom menu drawing stuff you have to dip down into Carbon (or find a pre-built wrapper class out on the net somewhere).
[Discussion of Cocoa features lost in transition from Openstep/Rhapsody to Cocoa moved to OpenStep page]
So I wonder what’s the best way of going about making a custom menu? I want a menu which displays a series of line dash styles, so I need a way to draw those lines as menu items. If there’s no support in Cocoa and only the Carbon way officially available, I wonder if it’s worth skipping that altogether and simply pop up a borderless window and handle it all there? Anyone any experience of doing this? –GrahamCox
For line styles it is probably just as easy to use images, as in Keynote and Pages for example. They are just pre-made images that are set probably in awakeFromNib with a blank title for the menu item. You could easily create these in Photoshop if there are a large number of them. –LoganCollins