MenuAction

public protocol MenuAction : Action

Action with extended menu facilities.

  • menuName Default implementation

    Menu item title.

    Default Implementation

    Declaration

    Swift

    var menuName: String { get }
  • setup(item:context:) Default implementation

    Configures the given menu item.

    Default Implementation

    The default implementation does nothing.

    Declaration

    Swift

    func setup(item: NSMenuItem, context: ActionContext)