• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: State Restoration thinks all my windows closes prior to quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: State Restoration thinks all my windows closes prior to quit
      • From: Quincey Morris <email@hidden>
References: 
 >State Restoration thinks all my windows closes prior to quit (From: Daryle Walker <email@hidden>)
 >Re: State Restoration thinks all my windows closes prior to quit (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: UICollectionView Moving
  • Next by Date: Re: State Restoration thinks all my windows closes prior to quit
  • Previous by thread: Re: State Restoration thinks all my windows closes prior to quit
  • Next by thread: Re: State Restoration thinks all my windows closes prior to quit
  • Index(es):
    • Date
    • Thread