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. The specified index must refer to an existing menu item.
Return Value
The menu item, or nil if no item exists at the specified index.