Revision: 7332
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7332&view=rev
Author:   hofman
Date:     2011-07-08 09:46:23 +0000 (Fri, 08 Jul 2011)

Log Message:
-----------
don't use core animation for pref pane switch on 10.5

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

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2011-07-07 23:44:29 UTC (rev 7331)
+++ trunk/SKPreferenceController.m      2011-07-08 09:46:23 UTC (rev 7332)
@@ -136,6 +136,9 @@
         if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKDisableAnimationsKey]) {
             [contentView replaceSubview:oldView with:view];
             [[self window] setFrame:frame display:YES];
+        } else if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_5) {
+            [contentView replaceSubview:oldView with:view];
+            [[self window] setFrame:frame display:YES animate:YES];
         } else {
             NSTimeInterval duration = [[self window] 
animationResizeTime:frame];
             [contentView setWantsLayer:YES];


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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to