title: Cursor rect on top of NSTextView
body: <p>I have implemented an iOS style NSScrollView by adding a knob subview to the NSScrollView. The implementation works just fine except for one thing - the cursor change over the knob view.</p>
  
  <p>I am using <code>NSView</code>s <code>-resetCursorRects</code> method to setup the cursor rectangle.</p>
  
  <pre><code>- (void)resetCursorRects {
    [self addCursorRect:self.knobFrame cursor:[NSCursor pointingHandCursor]];
  }
  </code></pre>
  
  <p>This works too, but the Cursor is immediately reset to the <code>IBeam</code> style as soon as I cross the cursor rect boundary.</p>
  
  <p>How can I prevent this? Has it something to do with the knob view not being opaque?</p>
  
  <p>UPDATE 0:</p>
  
  <hr>
  
  <p>I also tried to implement it with a normal <code>NSScroller</code> and forcing the scroller to overlay the <code>NSClipView</code> in the scroll view's <code>-tile</code> method, but it seems regardless of what view is placed on top of the <code>NSTextView</code> it always enforces the <code>IBeam</code> cursor type.</p>
  
  <p>UPDATE 1:</p>
  
  <hr>
  
  <p>I found this <a href="http://lists.apple.com/archives/cocoa-dev/2010/Mar/msg00699.html" rel="nofollow">mailing list</a> entry that suggests overriding the <code>NSTextView</code>s <code>-mouseMoved</code>, but since this is not a satisfying solution for a robust custom <code>NSScrollView</code> implementation its not really an option.</p>