• 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: How to implement NSWindowRestoration protocol in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to implement NSWindowRestoration protocol in Swift


  • Subject: Re: How to implement NSWindowRestoration protocol in Swift
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 03 Mar 2016 14:22:18 -0500

> On Mar 3, 2016, at 1:32 PM, Quincey Morris <email@hidden> wrote:
>
> — There’s nothing wrong with using MainWindowController as your restoration class (AFAIK), because the restoration method is a static func.
>
> OTOH, there’s no particular reason, in *this* part of the restoration mechanism, to tie restoration to the window controller at all. In a sense, the window controller has nothing to do with it, except to the extent that the timing of its instantiation determines the time of window loading.
>
> There may be other reasons to tie restoration to the window controller. I’ll come back to that point later....

Quincey, that was very helpful and thought-provoking. It will take me a day or so to digest and play with it, but you have opened my eyes to more of the workings of state restoration. Thanks. If I come to any useful conclusions, I'll report back.

--

Bill Cheeseman - email@hidden

_______________________________________________

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: 
 >How to implement NSWindowRestoration protocol in Swift (From: Bill Cheeseman <email@hidden>)
 >Re: How to implement NSWindowRestoration protocol in Swift (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How to implement NSWindowRestoration protocol in Swift
  • Next by Date: Staggering new windows
  • Previous by thread: Re: How to implement NSWindowRestoration protocol in Swift
  • Next by thread: Staggering new windows
  • Index(es):
    • Date
    • Thread