Contents

NSMenuItem

A command item in an app menu.

Declaration

class NSMenuItem

Overview

The NSMenuItem class includes some private functionality needed to maintain binary compatibility with other components of Cocoa. Because of this fact, you can’t replace the NSMenuItem class with a different class, but you can subclass it if necessary.

Topics

Creating a menu item

Enabling a menu item

Managing hidden status

Managing the target and action

Managing the title

Managing the tag

Managing the state

Managing the image

Managing the badge

Managing the section header

Managing submenus

Managing the separator item

Managing the owning menu

Managing key equivalents

Managing mnemonics

Managing user key equivalents

Managing alternates

Managing indentation levels

Managing tool tips

Representing an object

Managing the view

Getting highlighted status

Identifying the Continuity Camera menu item

Type Methods

Instance Properties

Type Properties

See Also

Menus