title: Displaying text in a NSScrollView (Swift)
body: <p>Just started to learn Swift and created a little macOS app in which I want to use a <code>NSScrollView</code> to display an attributed String. I’ve tried:</p>
  
  <pre><code>@IBOutlet var ScrollViewOutlet : NSScrollView
  var attributedString = NSMutableAttributedString(string: myText)
  ScrollViewOutlet.insertText(attributedString)
  </code></pre>
  
  <p>But that doesn’t seem to work. Feels confusing since doing the exact same with a <code>NSTextView</code> instead works like a charm.</p>
  
  <p>What am I missing here?</p>