MenuItem → Object

AppleMenuItem Class

The AppleMenuItem class is designed to handle a menu item that you wish to place in the Apple menu under Mac OS "classic." A menu item subclassed from AppleMenuItem is automatically moved to the Apple menu for Mac OS "classic" builds and to the Application menu for Mac OS X builds. Under other operating systems, such a menu item stays where you put it in the Menu Editor.

# Notes

You cannot place menu items directly in the Apple or application menus in the Menu Editor.

Since this class is based on MenuItem, please refer to this class for information the AppleMenuItem's properties, methods, and event.

To use AppleMenuItem, create the menu item under the menu that you want to use for the Windows and Linux builds of the application and then use the Properties pane to change its super class to AppleMenuItem. Otherwise, set up the menu item normally.

# See Also

MenuItem, PrefsMenuItem, QuitMenuItem classes.