title: Animate setContent of an NSWindow
body: <p>In the past I've been successfully able to fade in an NSWindow using the following code;</p>
  
  <pre><code>if (![statusWindow isVisible])
      {
  statusWindow.alphaValue = 0.0;
  [statusWindow.animator setAlphaValue:1.0];
      }
  
  CAAnimation *anim = [CABasicAnimation animation];
  [anim setDelegate:self];
  [statusWindow setAnimations:[NSDictionary dictionaryWithObject:anim forKey:@"alphaValue"]];
  [statusWindow makeKeyAndOrderFront:self];
  </code></pre>
  
  <p>For my current project I'm trying to make a flash similar to the one in Photo Booth. I've created a white NSPanel and was planning to set my NSWindow's content to the panel, and quickly set it back.</p>
  
  <p>Is it possible to set the contentView of an NSWindow using a nice fade effect?</p>
  
  <p>P.S - If there is an easier way you know of how to achieve the flash, please tell me!</p>
  
  <p>Thanks in advance,
  Ricky.</p>