Contents

item(withTitle:)

Returns the first menu item in the menu with a specified title.

Declaration

func item(withTitle title: String) -> NSMenuItem?

Parameters

  • title:

    The title of a menu item.

Return Value

The found menu item (an object conforming to the NSMenuItem protocol) or nil if the object couldn’t be found.

See Also

Related Documentation

Finding Menu Items