MenuItem → Object

QuitMenuItem Class

The Quit menu item is derived from the QuitMenuItem class.

# Notes

Since this class is based on MenuItem, please see that class for information on its Properties, Methods, and Events.

The Quit menu item that is added by default to all applications is an instance of the QuitMenuItem class. It differs from menu items derived from the MenuItem class in that it is enabled by default and automatically calls the Quit method to quit the application. Thus, there is no need to enable the menu item via code or write its handler.

# Examples

You normally have no need to create additional instances of the QuitMenuItem class, but you can use its properties to modify the default appearance or behaviour of the Quit menu item.

FileQuit.BalloonHelp="Exits the application"

# See Also

EnableMenuItems function; New operator; AppleMenuItem, MenuItem, PrefsMenuItem classes.