title: NSScrollView with unclipped content view?
body: <p>Is there a way I can set my scrollview not to clip its contents? (Which is a <code>NSTextView</code>)</p>
  
  <p>I have a subclass of NSScrollView and want its content <strong>not</strong> to be clipped to its bounds. 
  I have tried overriding:</p>
  
  <pre><code>- (BOOL) wantsDefaultClipping{
      return NO;
  }
  </code></pre>
  
  <p>in <code>MyScrollView</code> and in <code>MytextView</code> without any effect. 
  In the iOS I would simply would do: <code>myuitextView.clipsToBounds=NO;</code> how can I do this in Cocoa?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This is an example of what I want to achieve but in the mac
  The scrollview is white, the scroller will never go outside its bounds but the text does since I did <code>myuitextView.clipsToBounds=NO</code> </p>
  
  <p><a href="https://i.stack.imgur.com/rwp8n.png" rel="nofollow noreferrer">See picture here</a></p>
  
  <p><strong>EDIT2</strong></p>
  
  <p>I wouldn't mind clip my view like @Josh suggested. But the real behaviour I would like to have can be explained with this picture:</p>
  
  <p><img src="https://i.stack.imgur.com/jxSmv.png" alt="normal NSScrollView with NSTextView"></p>
  
  <p>Do you see the word *****EDIT*****  that has being cut in the very first line? 
  I want the text not to be cut this way, rather I want it to completely appear and I will put a semitransparent image so it looks like it fades off when it's outside the frame.</p>
  
  <p>Q: Why don't I simply put a semitransparent NSImageView on it so it looks like what I want?
  A: Because 1.Scroller will be faded as well. Even if I correctly place the semitransparent NSImageView so the scroller looks fine, the cursor/caret will be able to go underneath the semitransparent NSImageView again it does not look good.</p>
  
  <p>I would like to be able to control the area is clipped by NSClipView. I think that would solve my problem. Is there any alternative I have? maybe I can control the caret position or scrolling position through NSTextView so caret will never go near the top/bottom frame limits? or any work-around?</p>
  
  <p>Any advice is appreciated.</p>