Revision: 5918
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5918&view=rev
Author:   hofman
Date:     2009-10-20 20:54:06 +0000 (Tue, 20 Oct 2009)

Log Message:
-----------
use macro for fade out duration of fullscreen window

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

Modified: trunk/SKFullScreenWindow.m
===================================================================
--- trunk/SKFullScreenWindow.m  2009-10-20 20:25:17 UTC (rev 5917)
+++ trunk/SKFullScreenWindow.m  2009-10-20 20:54:06 UTC (rev 5918)
@@ -40,6 +40,7 @@
 #import "SKMainWindowController.h"
 #import "NSEvent_SKExtensions.h"
 
+#define FADEOUT_DURATION 0.5
 
 @implementation SKFullScreenWindow
 
@@ -53,7 +54,7 @@
         [self setBackgroundColor:[NSColor blackColor]];
         [self 
setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
         CAAnimation *animation = [CABasicAnimation animation];
-        [animation setDuration:0.5];
+        [animation setDuration:FADEOUT_DURATION];
         [animation setTimingFunction:[CAMediaTimingFunction 
functionWithName:kCAMediaTimingFunctionEaseOut]];
         [self setAnimations:[NSDictionary 
dictionaryWithObjectsAndKeys:animation, @"alphaValue", nil]];
     }
@@ -117,7 +118,7 @@
 
 - (void)fadeOut {
     [[self animator] setAlphaValue:0.0];
-    [self performSelector:@selector(orderOut:) withObject:nil afterDelay:0.7];
+    [self performSelector:@selector(orderOut:) withObject:nil 
afterDelay:FADEOUT_DURATION];
 }
 
 @end


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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to