Revision: 5740
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5740&view=rev
Author:   hofman
Date:     2009-09-10 18:43:55 +0000 (Thu, 10 Sep 2009)

Log Message:
-----------
fix version check and quicker animation

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2009-09-10 17:58:15 UTC (rev 5739)
+++ trunk/SKMainWindowController.m      2009-09-10 18:43:55 UTC (rev 5740)
@@ -1684,7 +1684,7 @@
             [[oldButton superview] replaceSubview:oldButton with:newButton];
         [contentView replaceSubview:oldView with:newView];
         [[firstResponder window] makeFirstResponder:firstResponder];
-    } else if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_5) {
+    } else if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) {
         mwcFlags.isAnimating = 1;
         
         if (changeButton) {
@@ -1695,7 +1695,7 @@
         [contentView displayIfNeeded];
         
         [NSAnimationContext beginGrouping];
-        [[NSAnimationContext currentContext] setDuration:1.0]; 
+        [[NSAnimationContext currentContext] setDuration:0.7]; 
         if (changeButton)
             [[buttonView animator] replaceSubview:oldButton with:newButton];
         [[contentView animator] replaceSubview:oldView with:newView];
@@ -1707,7 +1707,7 @@
         [info setValue:contentView forKey:@"contentView"];
         [info setValue:firstResponder forKey:@"firstResponder"];
         
-        [self performSelector:@selector(finishTableAnimation:) withObject:info 
afterDelay:1.0];
+        [self performSelector:@selector(finishTableAnimation:) withObject:info 
afterDelay:0.7];
     } else {
         if (changeButton) {
             [newButton setHidden:YES];


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to