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: Daryle Walker <email@hidden>
- Date: Mon, 07 Mar 2016 15:30:40 -0500
On Mar 5, 2016, at 12:11 PM, Quincey Morris <email@hidden> wrote:
>
> On Mar 5, 2016, at 01:36 , Daryle Walker <email@hidden <mailto: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.
I haven’t set any restoration class. But that wasn’t a problem before; Apple’s default code worked just fine. I don’t know what I changed to break it.
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
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