> On Mar 3, 2016, at 1:32 PM, Quincey Morris
> 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 ti
On Mar 3, 2016, at 05:27 , Bill Cheeseman wrote:
>
> I use MainWindowController as the restoration class:
>
>static func restoreWindowWithIdentifier(identifier: String, state:
> NSCoder, completionHandler: (NSWindow?, NSError?) -> Void) {
>let controller = MainWindowController()
>
In my OS X single-window application (not document-based), written using
storyboards in Swift 2, I implement the NSWindowRestoration protocol's static
function restoreWindowWithIdentifier(_:state:completionHandler). I have reached
the point where it is called when it is supposed to be called.
B