item(withTitle:)
Returns the menu item with the specified title.
Declaration
func item(withTitle title: String) -> NSMenuItem?Parameters
- title:
The title of the menu item you want.
Return Value
The menu item, or nil if no item with the specified title exists in the menu.