My current Swift code of
var appBundle = NSBundle.mainBundle()
let controller: ViewController = ViewController.init(nibName: "ViewController", bundle: nil)
self.window.contentView.addSubview(controller.view)
controller.view.frame = self.window.contentView.bounds
is getting two errors. One is "Expected member name or constructor call after type name" and the other is "() is not convertible to 'ViewController'. For reference, ViewController is a class that inherits from NSViewController.
Both of the errors are occurring on the second line of code. Thanks in advance.