title: NSView resizing shaky
body: <p>I have an <code>MAAttachedWindow</code> (subclass of <code>NSWindow</code>), which contains a blank view (<code>contentView</code>), and some arbitrary subview (right now an <code>NSImageView</code>).
  On load, I'm attempting to resize the window by 100px vertically, in an animated fashion.</p>
  
  <p>This code block initializes my window and views:</p>
  
  <pre><code>_popoverContentView = [[NSView alloc] initWithFrame: aFrame];
  NSImageView *img = [[NSImageView alloc] initWithFrame: aFrame];
  [img setImage: [NSImage imageName: "@my_debug_image"]];
  [img setAutoresizingMask: NSViewHeighSizable];
  [_popoverContentView setAutoresizesSubviews: YES];
  [_popoverContentView addSubview: img];
  popover = [[MAAttachedWindow alloc] initWithView: _popoverContentView attachedToPoint: aPoint inWindow: nil onSide: MAPositionBottom atDistance: aDist];
  </code></pre>
  
  <p>And this code block is responsible for the animation:</p>
  
  <pre><code>NSRect newPopoverFrame = popover.frame;
  NSRect newPopoverContentViewFrame = _popoverContentView.frame;
  
  newPopoverFrame.size.height += 100;
  newPopoverContentViewFrame.size.height += 100;
  
  [_popoverContentView animator] setFrame: newPopoverContentViewFrame];
  [[popover animator] setFrame: newPopoverFrame display: YES animate: YES];
  </code></pre>
  
  <p>Now this all works (almost) as expect, however as shown in <a href="http://dl.dropbox.com/u/2338382/stackoverflow_q7419270.mov" rel="nofollow">this video</a>, the animation is unreliable, shaky, and jumpy. I can't seem to pinpoint what in my code is causing this, or how to go about locking the image view into place.</p>