O'Reilly logo
  • Jamie Robillard thinks this is interesting:

​ ​l​e​t​ ​m​a​i​n​W​i​n​d​o​w​C​o​n​t​r​o​l​l​e​r​ ​=​ ​M​a​i​n​W​i​n​d​o​w​C​o​n​t​r​o​l​l​e​r​(​w​i​n​d​o​w​N​i​b​N​a​m​e​:​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ...

From

Cover of Cocoa Programming for OS X: The Big Nerd Ranch Guide

Note

In Xcode 9 this did not work I had to use this line instead:
let mainWindowController = MainWindowController(windowNibName: NSNib.Name(rawValue: "MainWindowController"))