How to move or resize an NSView by setting the frame property?
<p>I created the <code>NSView</code> in a storyboard. In this case, it is an <code>NSTextField</code>. In the <code>NSViewController</code>'s <code>viewDidLoad()</code> method, I want to conditionally resize and reposition the <code>NSTextField</code>, but setting the frame has no effect.</p>

<p>For example:</p>

<pre><code>class ViewController: NSViewController {

    @IBOutlet var label: NSTextField!

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        label.frame = NSRect(x: 0, y: 0, width: 200, height: 17)
        label.setNeedsDisplay()
    }
}
</code></pre>

<p>When the view loads, the label still has its original frame as set in interface builder, and not the newly set frame.</p>

<p>How does one programmatically move/resize the label?</p>