Appending text to NSTextView in Swift 3
<p>I am building an application that utilizes an MDM API to make bulk updates to attributes of devices.</p>

<p>I am looking to have some sort of visible output/logging in the main view so that the user can see what lines of their CSV may have failed and what the HTTP Response Code was. I can append to an <code>NSTextField</code> or a label easy enough, but seeing as how there may be a large output with many lines, I'd like to have a scrollable text box to append the information to. </p>

<p>All of the documentation that I've found for doing this seems to be Swift 2, and this is the one piece of the puzzle I'm missing. </p>

<p>Alternatively, if there's a better way to display some sort of logging output on the main screen, I'd be open to that as well. </p>

<p>I've tried declaring my outlet as both an <code>NSScrollView</code> and an <code>NSTextView</code>, and neither seems to make a difference. <code>insertText</code> seems to be deprecated. </p>

<p>In the past, on Swift 2 I've used <a href="https://stackoverflow.com/a/31926331/7071411">this solution</a> and it worked well for me, but it doesn't work on swift 3.</p>