title: Cannot form weak reference to instance of class NSTextView
body: <p>Using Swift only, here's my code in AppDelegate.swift:</p>
  
  <pre><code>import Cocoa
  
  class AppDelegate: NSObject, NSApplicationDelegate {
  
      @IBOutlet var window: NSWindow
      @IBOutlet var textField: NSTextView
  
      @IBAction func displaySomeText(AnyObject) {
          textField.insertText("A string...")
      }
  
      func applicationDidFinishLaunching(aNotification: NSNotification?) {
          // Insert code here to initialize your application
      }
  
      func applicationWillTerminate(aNotification: NSNotification?) {
          // Insert code here to tear down your application
      }
  
  
  }
  </code></pre>
  
  <p>In the interface builder, I have an object hooked up to receive input from a button, then the output goes to a text view.  I'm trying to get the text view to populate with some text when I hit the button.</p>
  
  <p>I tried this with a text field as well, and didn't get the error, but got a "dong" error sound and it didn't do anything else.  In Objective-C, you had to use the <code>(assign)</code> parameter to get this to work from what I understand.</p>
  
  <p>What am I doing wrong?</p>