Important: The information in this document is obsolete and should not be used for new development.
AGIsDatabaseOpen
Use theAGIsDatabaseOpenfunction to verify that a guide file is still open.
Boolean AGIsDatabaseOpen(AGRefNum refNum);
- refNum
- The reference number for the guide file.
DESCRIPTION
If the guide file (specified in therefNumparameter) is open,AGIsDatabaseOpenreturnsTRUE, and if the guide file is closed,AGIsDatabaseOpenreturnsFALSE.The user or another application can close a guide file that your application explicitly opens. A user can directly close your guide file by clicking in its close box. The user or another application can indirectly close your guide file by opening another guide file. (Before opening a guide file, Apple Guide closes the active guide file, if any.) Therefore, when your application switches from the background to the foreground, you should call
AGIsDatabaseOpento verify that your guide file is still open.SEE ALSO
You can also verify that a guide file is open by using the functionAGGetFrontWindowKindfunction. TheAGGetFrontWindowKindfunction (described next) returns additional information about a guide file.