title: Animated rotation of NSView contents
body: <p>I'm trying to rotate the contents of an <code>NSView</code> (<code>NSButton</code>) in-place (I.e. from the center. I want to convert <code>-</code> into <code>|</code>).  This can be done with <code>setFrameCenterRotation:</code> …  However, I'm trying to animate this, and </p>
  
  <pre><code>[[myview animator] setFrameCenterRotation: 90];
  </code></pre>
  
  <p>causes the control to first jump to the right, and then rotate around the bottom-left corner (0,0) back to the original location.</p>
  
  <p>Some people have suggested first setting the <code>anchorPoint</code>:</p>
  
  <pre><code>[[myview layer] setAnchorPoint: NSMakePoint(0.5, 0.5)];
  </code></pre>
  
  <p>but for some reason the animation cancels this out and it gets reset to (0, 0).</p>
  
  <p>So, has anybody figured out how to animate an in-place rotation of an <code>NSView</code>?</p>