title: AutoScroll down in a NSTextField in Swift
body: <p>I am trying to find a way to scrool down at the end of a NSTextField automatically. The textField is updated in a loop so I wanted to know <strong>how to make it display the last text entered each time by scrolling down.</strong></p>
  
  <p>Here is my code:</p>
  
  <pre><code>var tmp = consoleView.stringValue.utf16Count
  if tmp &gt;= 25000
  {
      consoleView.stringValue = "";
  }
  consoleView.stringValue = //[..longStringHere..]
  consoleView.//SCROLLDOWN
  </code></pre>
  
  <p>I saw there are some answers in objective-c but I never did any program in it so I don't understand it well...</p>
  
  <p>Thank you      </p>