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.
Returns the menu item at the specified index.
func item(at index: Int) -> NSMenuItem?The index of the item you want.
The menu item, or nil if no item exists at the specified index.