title: OS X app in Swift without XIB
body: <p>Has anyone figured out a way to bootstrap an NSWindow-based app without using a XIB (or IB at all)? In iOS, this is fairly simple;</p>
  
  <pre><code>func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -&gt; Bool {
          window = UIWindow(frame: UIScreen.mainScreen().bounds)
  
          window!.rootViewController = ViewController(nibName: nil, bundle: nil)
          window!.makeKeyAndVisible()
          window!.backgroundColor = UIColor.whiteColor()
          return true
      }
  </code></pre>
  
  <p>But I just can't get it to work right for a desktop app.. NSWindow doesn't have a makeKeyAndVisible() method, and NSApplicationDelegate seems to have a dozen overrides for func application().. What's the magic incantation?</p>