Contents

sectionHeader(title:)

Returns a menu item representing a section header for a logical grouping of menu commands.

Declaration

static func sectionHeader(title: String) -> NSMenuItem

Parameters

  • title:

    The title string to display on the section header.

Discussion

Use section headers to provide context to a group of menu items. Items created using this method are non-interactive and don’t perform actions.

See Also

Type Methods