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

Total Post:3

Points:21
Posted on    October-15-2015 12:29 AM

 iPhone iPhone  Ios  Objective C 
Ratings:


 1 Reply(s)
 518  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:210

Points:1614
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