Re: Persistence... of a sort

Miettunen Jouni (jom@ccc.fi)
Thu, 26 Sep 1996 16:38:01 +0300

Hello,

At 05:15 26.9.1996 EDT, Marcus Groeber wrote:
>signaled), but when I restart it, the UI sometimes doesn't seem to be rebuilt
>from scratch, but rather "remembers" some state info from the old session, like
>open dialogs or contents of text entry fields.

I use this kind of a piece of code. Can't remember where I saw it, might
have been the (AOL) GEOS info database:

/***************************************************************
* void MSG_GEN_PROCESS_CREATE_NEW_STATE_FILE
* (MemHandle appInstanceReference)
***************************************************************/
/* Completely disable the state file for your application. */
@method ReversiProcessClass, MSG_GEN_PROCESS_CREATE_NEW_STATE_FILE
{
return (NullHandle);
}

I also use the "neverSaved" magic keyword when defining the process class,
but I haven't checked what it is supposed to do :)

@classdecl ReversiProcessClass, neverSaved;

>ciao marcus

--jouni miettunen