AGIsDatabaseOpenfunction to verify that a guide file is still open.
Boolean AGIsDatabaseOpen(AGRefNum refNum);
- The reference number for the guide file.
DESCRIPTIONIf the guide file (specified in the
refNumparameter) is open,
TRUE, and if the guide file is closed,
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 ALSOYou can also verify that a guide file is open by using the function
AGGetFrontWindowKindfunction (described next) returns additional information about a guide file.