Contents

selectItem(withTitle:)

Selects the item with the specified title.

Declaration

func selectItem(withTitle title: String)

Parameters

  • title:

    The title of the item to select. If you specify an empty string, or a string that does not match the title of a menu item, this method deselects the currently selected item.

Discussion

By default, selecting or deselecting a menu item changes its state. To disassociate the current selection from the state of menu items, set the altersStateOfSelectedItem property to false.

See Also

Related Documentation

Dealing with selection