• 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: 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


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

  • Prev by Date: Re: State Restoration thinks all my windows closes prior to quit
  • Next by Date: Re: Starting out with storyboards (on Mac)
  • 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