In iPhone, using NSTextView that creates a surfacemargin between text and border, I want to know here is any way to create distance between text and border of view, without resorting owner drawing?
To set surface margin of NSTextView manually, use setTextContainerInset: method of NSTextView. The height and width components of the NSSize parameter specify the vertical and horizontal padding amount respectively.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The height and width components of the NSSize parameter specify the vertical and horizontal padding amount respectively.