title: NSWindow Flip Animation - Like iWork
body: <p>I'm attempting to implement window-flipping identical to that in iWork -</p>
  <p><a href="https://dl.dropbox.com/u/2338382/Window%20Flipping.mov" rel="nofollow noreferrer">https://dl.dropbox.com/u/2338382/Window%20Flipping.mov</a></p>
  <p>However, I can't quite seem to find a straightforward way of doing this. Some tutorials suggest sticking snapshot-images of both sides of the window in a bigger, transparent window and animate those. This might work, but seems a bit hacky, and the sample code is always bloated. Some tutorials suggest using private APIs, and since this app may be MAS-bound, I'd like to avoid that.</p>
  <p>How should I go about implementing this? Does anyone have any hints?</p>
  <h3>NSWindow+Flipping</h3>
  <p>I've rewritten the ancient code linked below into NSWindow+Flipping. You can grab these source files from <a href="https://github.com/pcperini/PCSnippets" rel="nofollow noreferrer">my misc. Cocoa collection on GitHub, PCSnippets</a>.</p>