CoreImage effect loads only with OS X 10.4.0 through 10.4.5. It crashes 10.4.6 currently.
[ITKit.git] / ITCutWindowEffect.m
old mode 100755 (executable)
new mode 100644 (file)
index 2340dbf..b4fa449
             [NSNumber numberWithBool:YES], @"Right", nil] , @"Bottom" , nil];
 }
 
             [NSNumber numberWithBool:YES], @"Right", nil] , @"Bottom" , nil];
 }
 
++ (unsigned int)listOrder
+{
+    return 100;
+}
+
 
 /*************************************************************************/
 #pragma mark -
 
 /*************************************************************************/
 #pragma mark -
 
 - (void)performAppear
 {
 
 - (void)performAppear
 {
-    CGAffineTransform transform;
-    NSPoint appearPoint;
-    
-    //Set the location on the screen
-    if ( [(ITTransientStatusWindow *)_window horizontalPosition] == ITWindowPositionLeft ) {
-        appearPoint.x = -( 32.0 + [[_window screen] visibleFrame].origin.x );
-    } else if ( [(ITTransientStatusWindow *)_window horizontalPosition] == ITWindowPositionRight ) {
-        appearPoint.x = -(([[_window screen] visibleFrame].size.width + [[_window screen] visibleFrame].origin.x) - 32.0 - [_window frame].size.width);
-    } else if ( [(ITTransientStatusWindow *)_window horizontalPosition] == ITWindowPositionCenter ) {
-        appearPoint.x = ( [_window frame].size.width - [[_window screen] visibleFrame].size.width ) / 2;
-    }
-    
-    if ( [(ITTransientStatusWindow *)_window verticalPosition] == ITWindowPositionTop ) {
-        appearPoint.y = ( 64.0 + [[_window screen] visibleFrame].origin.y - [_window frame].size.height );
-    } else if ( [(ITTransientStatusWindow *)_window verticalPosition] == ITWindowPositionBottom ) {
-        appearPoint.y = -( [[_window screen] frame].size.height - ( [_window frame].size.height + 32.0 + [[_window screen] visibleFrame].origin.y) );
-    } else if ( [(ITTransientStatusWindow *)_window verticalPosition] == ITWindowPositionMiddle ) {
-        appearPoint.y = ( [_window frame].size.height - [[_window screen] visibleFrame].size.height) / 2;
-    }
-    
-    transform = CGAffineTransformMakeTranslation(appearPoint.x, appearPoint.y);
-    CGSSetWindowTransform([NSApp contextID],
-                          (CGSWindowID)[_window windowNumber],
-                          transform);
-    
     [_window orderFront:self];
     [self setWindowVisibility:ITWindowVisibleState];
 }
     [_window orderFront:self];
     [self setWindowVisibility:ITWindowVisibleState];
 }