Pro tip: When adding an NSTextView programatically, add it to an NSScrollView’s documentView property.

Jared Sorge @jsorge