[openbeos] Re: state-keeping app

  • From: François Revol <revol@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 01 Aug 2002 22:53:26 +0200 (MEST)

En réponse à Jonas Sundstrom <kirilla@xxxxxxxxx>:

> I'd do it something like this:
> 
> - a new resource flag: "Remember state"
>   (something like that)
> 
> - a B_LOAD_STATE app launch message
> 
> - a B_SAVE_STATE shutdown message
>   (probably a B_QUIT_REQUESTED with a "save_state" field)

Yeah, I'm pretty sure the shutdown command just sends B_QUIT_REQUESTED with 
a special flag on the BMessage, can't remember where I read that though.

> 
> The resource flag would keep non-state-aware apps 
> out of the loop
> 
Or just those that ignore the flag on QUIT_REQUESTED ?

> The load/save messages would put the actual 
> state-management in the hands of the application.
> (different apps - different ways of saving state)
> 
> All backwards-compatible with Be's R5.
> 
> /Jonas Sundstrom. ~ www.kirilla.com ~ www.kioki.com
> 
> 
> 
> 






Other related posts: