Custom Menu Items

Nano simplifies the process of embedding arbitrary views into menu items, allowing you to place user interface elements such as sliders into a menu - or to define an entirely custom view.

Custom Menu Item

The NMenuItemView class manages integration into a menu item, and sub-classes simply need to implement methods to measure and draw their content.

Label Menu

Nano also provides an implementation of the Finder's "label color" menu item.

Label Menu

The NLabelView object can be attached to an arbitrary menu item, and will replace it with a custom menu item that allows the user to select label colors.

Since NLabelView uses the original menu item text as its title, it can be localized as a normal menu item. Color names are localized automatically, and will track the user's Finder label preferences.

As with all of Nano's custom views, this view is rendered entirely with CoreGraphics to ensure it is fully resolution independent.