textContainerInset
The empty space the receiver leaves around its associated text container.
Declaration
var textContainerInset: NSSize { get set }Discussion
It is possible to set the text container and view sizes and resizing behavior so that the inset cannot be maintained exactly, although the text system tries to maintain the inset wherever possible. In any case, the textContainerOrigin and size of the text container are authoritative as to the location of the text container within the view.
The text itself can have an additional inset, inside the text container, specified by the lineFragmentPadding method of NSTextContainer.