X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/a182eb127d3f864b1c7208658451f8a7e21aeed1..68bc0104e56ce3928afa2c7d1c86f78b216c153e:/StatusWindow.m diff --git a/StatusWindow.m b/StatusWindow.m index 8377ac0..21dd278 100755 --- a/StatusWindow.m +++ b/StatusWindow.m @@ -121,7 +121,9 @@ float excessHeight = 0.0; NSPoint windowOrigin; ITImageView *imageView; - + BOOL shouldAnimate = ( ! (([self visibilityState] == ITWindowAppearingState) || + ([self visibilityState] == ITWindowVanishingState)) ); + if ( _sizing == StatusWindowSmall ) { divisor = SMALL_DIVISOR; } else if ( _sizing == StatusWindowMini ) { @@ -173,7 +175,7 @@ [self setFrame:NSMakeRect( windowOrigin.x, windowOrigin.y, windowWidth, - windowHeight) display:YES animate:YES]; + windowHeight) display:YES animate:shouldAnimate]; [[[self contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; @@ -182,9 +184,10 @@ ((SW_PAD / divisor) + ((contentHeight - imageHeight) / 2)), imageWidth, imageHeight ); - imageView = [[[NSImageView alloc] initWithFrame:imageRect] autorelease]; + imageView = [[[ITImageView alloc] initWithFrame:imageRect] autorelease]; [imageView setAutoresizingMask:(NSViewMinYMargin | NSViewMaxYMargin)]; [imageView setImage:_image]; + [imageView setCastsShadow:YES]; [[self contentView] addSubview:imageView]; return NSMakeRect( ((SW_PAD / divisor) + imageWidth + (SW_SPACE / divisor)),