Home > DeveloperSection > Forums > NSTextView padding
Mary Johnson
Mary Johnson

Total Post:3

Posted on    October-15-2015 12:29 AM

 iPhone iPhone  Ios  Objective C 

 1 Reply(s)
 1024  View(s)
Rate this:
In iPhone, using NSTextView that creates a surface margin 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?

Tarun Kumar

Total Post:214

Posted on    October-15-2015 11:32 PM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick