item(withTag:)
Returns the first menu item in the menu with the specified tag.
Declaration
func item(withTag tag: Int) -> NSMenuItem?Parameters
- tag:
A numeric tag associated with 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.