Re: How to implement NSWindowRestoration protocol in Swift
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