Revision: 6410
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6410&view=rev
Author:   hofman
Date:     2010-04-03 14:48:34 +0000 (Sat, 03 Apr 2010)

Log Message:
-----------
no need to check pref key

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

Modified: trunk/SKGeneralPreferences.m
===================================================================
--- trunk/SKGeneralPreferences.m        2010-04-03 12:17:51 UTC (rev 6409)
+++ trunk/SKGeneralPreferences.m        2010-04-03 14:48:34 UTC (rev 6410)
@@ -119,16 +119,12 @@
 #pragma mark KVO
 
 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object 
change:(NSDictionary *)change context:(void *)context {
-    if (context == &SKGeneralPreferencesDefaultsObservationContext) {
-        NSString *key = [keyPath substringFromIndex:7];
-        if ([key isEqualToString:SKDefaultPDFDisplaySettingsKey] || [key 
isEqualToString:SKDefaultFullScreenPDFDisplaySettingsKey]) {
-            [self updateRevertButtons];
-        }
-    } else if (context == &SKGeneralPreferencesUpdaterObservationContext) {
+    if (context == &SKGeneralPreferencesDefaultsObservationContext)
+        [self updateRevertButtons];
+    else if (context == &SKGeneralPreferencesUpdaterObservationContext)
         [self synchronizeUpdateInterval];
-    } else {
+    else
         [super observeValueForKeyPath:keyPath ofObject:object change:change 
context:context];
-    }
 }
 
 #pragma mark Private


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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to