Link Search Menu Expand Document

CommandAlternate

An object representing an alternative action for a command.

public class CommandAlternate 

Initializers

init(title:action:modifierFlags:)

Creates a command alternative with the specified title, action, and modifier flags.

public /*convenience*/ init(title: String,
                              action: @escaping (_: AnyObject?) -> Void,
                              modifierFlags: KeyModifierFlags) 

Properties

title

The command alternative’s title.

public private(set) var title: String

action

The command alternative’s action-method selector.

public private(set) var action: (_: AnyObject?) -> Void

modifierFlags

The bit mask of modifier keys that the user must press to invoke the action for the alternative command.

public private(set) var modifierFlags: KeyModifierFlags