Padding in NSTextView -- possible without custom drawing?
The NSTextView method setTextContainerInset:
does what you're looking for. The height and width components of the NSSize
parameter specify the vertical and horizontal padding amount respectively.
For example
textView.textContainerInset = NSSize(width: 8, height: 8)