Fix CGS warnings on 10.6
authorKent Sutherland <ksuther@ithinksw.com>
Sat, 2 Jan 2010 03:31:34 +0000 (22:31 -0500)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Sat, 2 Jan 2010 03:35:24 +0000 (22:35 -0500)
ITSpinAndZoomWindowEffect.m
ITStatusItem.m
ITZoomWindowEffect.m

index 44b3ad3..910a21a 100644 (file)
     NSPoint translation;
        NSRect winFrame = [_window frame];
        
+    scale = MAX(scale, 0.000001);
+    
     translation.x = (winFrame.size.width / 2.0);
     translation.y = (winFrame.size.height / 2.0);
     transform = CGAffineTransformMakeTranslation(translation.x, translation.y);
index 0978705..fade99c 100644 (file)
@@ -100,14 +100,14 @@ static BOOL _ITStatusItemShouldKillShadow = NO;
 
 - (NSImage *)alternateImage {
        if ([super respondsToSelector:@selector(alternateImage)]) {
-               return [(id <_ITStatusItemNSStatusItemPantherCompatability>)super alternateImage];
+               return [super alternateImage];
        }
        return [(NSButton *)[self _button] alternateImage];
 }
 
 - (void)setAlternateImage:(NSImage*)image {
        if ([super respondsToSelector:@selector(setAlternateImage:)]) {
-               [(id <_ITStatusItemNSStatusItemPantherCompatability>)super setAlternateImage:image];
+               [super setAlternateImage:image];
                return;
        }
        [(NSButton *)[self _button] setAlternateImage:image];
index bde7a2d..888e37a 100644 (file)
     NSPoint translation;
     NSRect winFrame = [_window frame];
     
+    Zoom = MAX(Zoom, 0.000001);
+    
     translation.x = (winFrame.size.width / 2.0);
     translation.y = (winFrame.size.height / 2.0);
     transform = CGAffineTransformMakeTranslation(translation.x, translation.y);