init(title:)
Initializes and returns a menu having the specified title and with autoenabling of menu items turned on.
Declaration
init(title: String)Parameters
- title:
The title to assign to the menu.
Return Value
The initialized NSMenu object or nil if the object could not be initialized.
Discussion
This method is the designated initializer for the class.