Important: The information in this document is obsolete and should not be used for new development.
AGQuit
Use theAGQuit
function to quit Apple Guide.
AGErr AGQuit(void);DESCRIPTION
TheAGQuit
function checks to see if any guide files are open. If it finds one open, it does not quit Apple Guide. If no guide files are open, it quits the application portion of Apple Guide.If your application opens a guide file, it should always close the guide file and call
AGQuit
before quitting. Otherwise, if the application portion of Apple Guide is active or sleeping, it remains in memory.SPECIAL CONSIDERATIONS
Don't force Apple Guide to quit when your application goes to the background. If your application has opened a guide file and the user switches to another application, your guide file should remain open until the user closes it, opens another guide file, or quits your application.RESULT CODES
noErr 0 No error kAGErrDatabaseOpen -2961 No open guide file