the animations for the inspector are too buggy, so they have to go

This commit is contained in:
Mitchell Livingston
2007-05-22 04:05:21 +00:00
parent 95f5f6a0bd
commit dfdfe11e19

View File

@@ -636,20 +636,9 @@
if (animate)
{
//the animation won't resize the view correctly, so do it here
NSRect viewFrame = [view frame];
viewFrame.size.height += difference;
[view setFrame: viewFrame];
[view setNeedsDisplay: YES];
NSViewAnimation * fadeInAnimation = [[[NSViewAnimation alloc] initWithViewAnimations:
[NSArray arrayWithObjects: [NSDictionary dictionaryWithObjectsAndKeys: view, NSViewAnimationTargetKey,
NSViewAnimationFadeInEffect, NSViewAnimationEffectKey, nil],
[NSDictionary dictionaryWithObjectsAndKeys: window, NSViewAnimationTargetKey,
[NSValue valueWithRect: frame], NSViewAnimationEndFrameKey, nil], nil]] autorelease];
[fadeInAnimation setDuration: 0.1];
[fadeInAnimation setAnimationBlockingMode: NSAnimationNonblocking];
[fadeInAnimation startAnimation];
[view setHidden: YES];
[window setFrame: frame display: YES animate: YES];
[view setHidden: NO];
}
else
[window setFrame: frame display: YES];