Shawn Erickson | 1 Dec 2006 20:55
Picon

Re: Re: Saving open documents state

On 12/1/06, Jonathan Grynspan <grynspan@...> wrote:
> Just save the state when the application terminates, and don't
> implement any logic for close events. That should be good enough. If
> your application terminates abnormally, it won't remember any user
> defaults anyway, so adding extra effort to modify them before
> termination isn't necessary.
>
> If you really want to do it multiple times, you could, perhaps, set
> up a timer that saves the open document list every five minutes, and
> also call the same code in the -applicationWillTerminate: delegate
> method.

Just don't actually save anything unless something has changed... in
other words be nice to systems with spun down hard drives, etc.

Gmane