Important: The information in this document is obsolete and should not be used for new development.
AGClose
Use theAGClosefunction to close a specified guide file.
AGErr AGClose(AGRefNum *resultRefNum);
- resultRefNum
- A pointer to the reference number for the guide file you wish to close.
DESCRIPTION
TheAGClosefunction closes the guide file specified in theresultRefNumparameter. You useAGCloseto close a guide file that was opened by your application. If you attempt to close a guide file that was opened by another application, theAGClosefunction returns a nonzero result code. Note that a call toAGClosedoes not quit Apple Guide; it continues to run in the background.If your application opens a guide file, it should always close the guide file and call
AGQuitbefore quitting. Otherwise, if the application portion of Apple Guide is active or sleeping, it remains in memory.SPECIAL CONSIDERATIONS
Don't close an open guide file or 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 kAGErrDatabaseNotOpen -2957 Guide file is not open kAGErrInvalidRefNum -2960 The guide file was opened by another application SEE ALSO
For a description of theAGQuitfunction, see page 9-6.