Fixing LSUIElement nonsense!
[MenuTunes.git] / StatusWindow.m
index 8377ac0..21dd278 100755 (executable)
     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 ) {
     [self setFrame:NSMakeRect( windowOrigin.x,
                                windowOrigin.y,
                                windowWidth,
-                               windowHeight) display:YES animate:YES];
+                               windowHeight) display:YES animate:shouldAnimate];
 
     [[[self contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
     
                             ((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)),