• 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: Saving window and view state with NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Saving window and view state with NSDocument (From: Kurt Sutter <email@hidden>)
 >Re: Saving window and view state with NSDocument (From: Marek Hrušovský <email@hidden>)
 >Re: Saving window and view state with NSDocument (From: Kurt Sutter <email@hidden>)
 >Re: Saving window and view state with NSDocument (From: Marek Hrušovský <email@hidden>)
 >Re: Saving window and view state with NSDocument (From: Kurt Sutter <email@hidden>)
 >Re: Saving window and view state with NSDocument (From: Mike Abdullah <email@hidden>)
 >Re: Saving window and view state with NSDocument (From: Marek Hrušovský <email@hidden>)

  • Prev by Date: Re: Saving window and view state with NSDocument
  • Next by Date: Two Array Controllers, loading from CoreData, without a contentArray...
  • Previous by thread: Re: Saving window and view state with NSDocument
  • Next by thread: Re: Saving window and view state with NSDocument
  • Index(es):
    • Date
    • Thread