How can I set the window size programmatically? I have a window in IB and I want to set the size of it in my code to make it larger.
Swift version
var frame = self.view.window?.frame frame?.size = NSSize(width: 400, height:200) self.view.window?.setFrame(frame!, display: true)