title: Why shouldn't I use a cursor rect on a rotated NSView subclass?
body: <p>I am writing a custom NSView subclass. I have several instances of this class in my window, most of which are rotated by calling NSView's setFrameRotation method. I also need to change the cursor when over a rectangular region of this view.</p>
  
  <p>The <a href="http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/addCursorRect:cursor:" rel="nofollow noreferrer">documentation for NSView's addCursorRect</a> method contains the following oblique warning:</p>
  
  <blockquote>
    <p>Cursor rectangles aren’t subject to clipping by superviews, <em>nor are they intended for use with rotated views</em>.</p>
  </blockquote>
  
  <p>Well, shucks. But, I'd sure love to use them since they're a much nicer solution than the <a href="https://stackoverflow.com/questions/1169639/in-cocoa-what-is-the-best-way-to-change-the-cursor-when-hovering-over-a-circular">hacks I'd otherwise have to use</a>. And, you know what? I tried it and it seems to work fine. Nevertheless, that warning scares me; I'm worried that the devil will come to collect his due at some point down the road. Therefore, my question is this: does anyone know <strong>why</strong> cursor rectangles aren't intended for use with rotated views?</p>