
FB II Compiler
PG PRO
Debugging
Memory
System
Mathematics
Resources
Disk I/O
Windows
Controls
Menus
Mouse
Keyboard
Text
Fonts
Drawing
Sound
Clipboard
Printing
Communication
ASM
|
SYSTEM
Allow a correct shutdown
If you don't have a command Q in the file menu of your application then you will have to handle the AE_Quit event yourself, otherwise AE will "select" the Quit menu automatically.
If you DON'T have the SIZE resource set to accept high level events (default seeting for FB compiled apps) then you MUST have a File menu with an item titled "Quit" and it has to have a COMMAND + Q next to it so the System can select your quit menu during a shutdown, restart, or any time a quit appleevent is sent to it such as through an AppleScript program.
If you DO have the SIZE resource set to accept high level events, then your application MUST handle the required 4 appleevents (open app, open doc, print doc, and quit app). During a shutdown or restart, your application will be sent a quit event.
|