Re: Saving window and view state with NSDocument
Re: Saving window and view state with NSDocument
- Subject: Re: Saving window and view state with NSDocument
- From: Mike Abdullah <email@hidden>
- Date: Tue, 22 Sep 2015 10:52:47 +0100
> On 22 Sep 2015, at 10:50, Marek Hrušovský <email@hidden> wrote:
>
> This is somewhat true.
> I've just tested it with "NSQuitAlwaysKeepsWindows" and the restore delegate is kicked when you quit app/launch app from the dock. However, it's not called when you perform close on window (hit the red cross).
Yes, because NSQuitAlwaysKeepsWindows on, the system is restoring the app’s _windows_ effectively. That those windows are backed by a document is sort of a side-effect of the process. So it’s storing state for the app as a whole, not trying to store state for the document.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden