---
title: "NSTextView padding"  
description: "NSTextView padding"  
author: "Anonymous User"  
published: 2015-10-15  
updated: 2015-10-15  
canonical: https://www.mindstick.com/forum/33511/nstextview-padding  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# NSTextView padding

In iPhone, using NSTextView that creates a [surface](https://www.mindstick.com/forum/907/how-to-surface-a-value-for-more-than-one-row-in-mysql) [margin](https://answers.mindstick.com/qa/104990/what-is-a-margin-call) between [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) and border, I want to know here is any way to create [distance](https://www.mindstick.com/blog/12028/what-distance-learning-is-not) between text and border of [view](https://yourviews.mindstick.com/view/84701/layoffs-in-google-india-2023-view), without resorting [owner](https://answers.mindstick.com/qa/94082/who-is-the-owner-of-the-indian-space-research-organisation) drawing?

## Replies

### Reply by Tarun Kumar

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.


---

Original Source: https://www.mindstick.com/forum/33511/nstextview-padding

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
