Revision: 3863
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3863&view=rev
Author:   hofman
Date:     2008-05-08 16:53:33 -0700 (Thu, 08 May 2008)

Log Message:
-----------
Make fullscreen and side window key explicitly, because makeKeyAndOrderFront 
apparenty does not work.

Modified Paths:
--------------
    trunk/SKSideWindow.m

Modified: trunk/SKSideWindow.m
===================================================================
--- trunk/SKSideWindow.m        2008-05-08 19:04:53 UTC (rev 3862)
+++ trunk/SKSideWindow.m        2008-05-08 23:53:33 UTC (rev 3863)
@@ -108,7 +108,8 @@
         [animation setDuration:[self animationResizeTime:endFrame]];
         [animation startAnimation];
         [animation release];
-        [[controller window] makeKeyAndOrderFront:self];
+        [[controller window] orderFront:self];
+        [[controller window] makeKeyWindow];
         state = NSDrawerClosedState;
     }
 }
@@ -118,7 +119,7 @@
         state = NSDrawerOpeningState;
         NSRect screenFrame = [[[controller window] screen] frame];
         NSRect endFrame, startFrame = [self frame];
-        endFrame = startFrame;
+        endFrame = startFram
         endFrame.size.width = NSWidth([[[self contentView] contentView] 
frame]) + CONTENT_INSET;
         endFrame.origin.x = edge == NSMaxXEdge ? NSMaxX(screenFrame) - 
NSWidth(endFrame) : NSMinX(screenFrame);
         NSDictionary *slideInDict = [NSDictionary 
dictionaryWithObjectsAndKeys:self, NSViewAnimationTargetKey, [NSValue 
valueWithRect:startFrame], NSViewAnimationStartFrameKey, [NSValue 
valueWithRect:endFrame], NSViewAnimationEndFrameKey, nil];
@@ -127,7 +128,8 @@
         [animation setDuration:[self animationResizeTime:endFrame]];
         [animation startAnimation];
         [animation release];
-        [self makeKeyAndOrderFront:nil];
+        [self orderFront:nil];
+        [self makeKeyWindow];
         state = NSDrawerOpenState;
     }
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to