Contents

item(at:)

Returns the menu item at the specified index.

Declaration

func item(at index: Int) -> NSMenuItem?

Parameters

  • index:

    The index of the item you want.

Return Value

The menu item, or nil if no item exists at the specified index.

See Also

Getting menu items