I'm working on a brand new OS X app, and I've taken the daring route of working with a few technologies I haven't used much before. (I'm an iOS developer.)
I'm using Storyboards, Swift, and Core Data in my app, all from the Xcode template. When my app starts, it creates an NSWindowController from a Storyboard.
In another OS X app I made in Objective-C, I use the delegate method applicationShouldHandleReopen:hasVisibleWindows:
to tell the window controller to bring up the window controller's window.
I know that the language semantics remain the same in Swift, but Core Data and Storyboards leave me with two questions.
Does the fact that my project uses Core Data change it into a "document-based app" and therefore change the way windows are managed?
In my old project I'm using nibs instead of storyboards. It seems that I'm manually instantiating an
NSWindowController
there, and using it to manage re-opening. If there's a way to get at the one my Storyboard is undoubtedly making for me, that would be optimal, right? Is just attaching an outlet to my App Delegate the way to go? Is there another convention?