Re: State Restoration thinks all my windows closes prior to quit
Re: State Restoration thinks all my windows closes prior to quit
- Subject: Re: State Restoration thinks all my windows closes prior to quit
- From: Quincey Morris <email@hidden>
- Date: Sat, 05 Mar 2016 09:11:31 -0800
- Feedback-id: 167118m:167118agrif8a:167118stC--PsFUb:SMTPCORP
On Mar 5, 2016, at 01:36 , Daryle Walker <email@hidden> wrote:
>
> Default project Xcode 7 with OS X Cocoa app, with Storyboards but without Core Data nor Documents. Somewhere I messed up and State Restoration stopped working correctly. It somehow thinks when quit happens and any open windows get automatically closed that those windows were user-closed instead and therefore not restored.
Maybe I’m missing something, but I don’t see where you set the restoration class on the windows you create. Note that when you have a NSDocument-based app, NSDocumentController takes care of this for you. Without the restoration class, there’s no state restoration.
_______________________________________________
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