Removes the item with the specified title from the menu.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
func removeItem(withTitle title: String)
Parameters
title
The title of the item you want to remove. If no menu item exists with the specified title, this method triggers an assertion.