Topic: APLX Help : System Classes : Callbacks : onQuitMenu
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

The 'onQuitMenu' callback


Event generated under MacOS X only

Event number: 39
Generated for: System

When you create a packaged application from your APLX workspace, your code will normally use System Classes to create windows and the menus associated with them. However, under MacOS X, the 'Quit' menu item resides in the application menu which MacOS X creates, so it is outside the scope of the user-defined menus.

The onQuitMenu callback allows your packaged APL application to be notified when the user has selected the 'Quit' menu item, so that you can do any necessary cleaning up and exit the application.

Under Windows and MacOS 8 or 9, this callback will never be triggered. Instead, you should create your own 'Quit' menu item, usually in the 'File' menu.

See also the onAboutMenu and onPreferencesMenu callbacks.


Topic: APLX Help : System Classes : Callbacks : onQuitMenu
[ Previous | Next | Contents | Index | APL Home ]