I do use the same creator ID for my app as my DB. Any other Ideas?
This is what I'm doing:
// set access permissions for the DB
mode = dmModeReadWrite;
// try and open the DB
SFourDB = DmOpenDatabaseByTypeCreator(sFourDBType, appFileCreator, mode);
if (! SFourDB)
{
// the DB does not exist, so create it
error = DmCreateDatabase(cardNo, sFourDBName, appFileCreator,
sFourDBType, false);
ErrFatalDisplayIf(error, "Could not create new database. \n");
// find the database
SFourDB = DmOpenDatabaseByTypeCreator(sFourDBType, appFileCreator,
mode);
// get info about the database
error = DmOpenDatabaseInfo(SFourDB, &dbID, NULL, NULL, &cardNo, NULL);
ErrFatalDisplayIf(error, "Could not get database info. \n");
// set defaults for application info block
AppInfoInit(SFourDB);
}
Create your database using the same creator ID as your
app, and all of the issues you mention will be taken
care of.
--
Roger Chaplin <[EMAIL PROTECTED]>
>
>
> Is there a way to hide the database my application is using from the user?
>
> When the user goes to the info screen, or attempts to delete an application,
> that the database name shows up as its own instance. I want to hide or
> eliminate it. Is there a way to do this?
> For example I don't see a seperate database for the Address book or date
> book applications.
>
> Also if the user deletes my application, I want to delete the database as
well.
> Any ideas on how to do this?
>
>
> Thanks,
> Ronnen