How to keep `NSTextView` width constrained while the scrollbar at the edge of superView
<p>I have recently started Cocoa programing and stuck at a simple task.</p>

<p>I have <code>NSTextView</code> which is inside <code>NSScrollView</code>. I have constrained the 
<code>NSScrollView</code> to the edges of <code>NSWindow</code>. Programatically set inset to</p>

<pre><code>self.textView.textContainerInset = NSMakeSize(50 , 20)
</code></pre>

<p>What I need is to keep <code>NSTextView</code> container centrally aligned and width = 400, when app is windowed, resizes or goes to full screen while <strong>keeping</strong> the scroll bar at the edge of window.</p>