Instance Method

initWithTitle:

Initializes and returns a menu having the specified title and with autoenabling of menu items turned on.

Declaration

- (instancetype)initWithTitle:(NSString *)title;

Parameters

aTitle

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.

See Also