Enumeration

UIMenuElementState

Constants that indicate the state of an action- or command-based menu element.

Declaration

typedef enum UIMenuElementState : NSInteger {
    ...
} UIMenuElementState;

Topics

States

UIMenuElementStateOff

A constant indicating the menu element is in the “off” state.

UIMenuElementStateOn

A constant indicating the menu element is in the “on” state.

UIMenuElementStateMixed

A constant indicating the menu element is in the “mixed” state.

See Also

Menu Elements and Keyboard Shortcuts

Adding Menus and Shortcuts to the Menu Bar and User Interface

Provide quick access to useful actions by adding menus and keyboard shortcuts to your Mac Catalyst app.

UIMenuElement

An object representing a menu, action, or command.

UIAction

A menu element that performs its action in a block.

UICommand

A menu element that performs its action in a selector.

UIKeyCommand

An object that specifies a key press performed on a hardware keyboard and the resulting action.

UIMenuElementAttributes

Attributes that determine the style of the menu element.