In Cocoa, NSTextView
has a rather shallow margin between text and border. Is there a way to specify a padding (distance between text and border of view) for a NSTextView
without resorting to owner drawing?
views:
393answers:
1
+7
A:
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.
Boaz Stuller
2008-11-25 22:01:21