Revision: 5238
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5238&view=rev
Author:   hofman
Date:     2009-03-03 10:55:28 +0000 (Tue, 03 Mar 2009)

Log Message:
-----------
move KVO notifications

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

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2009-03-02 23:03:07 UTC (rev 5237)
+++ trunk/SKPreferenceController.m      2009-03-03 10:55:28 UTC (rev 5238)
@@ -131,9 +131,7 @@
     
     [self updateRevertButtons];
     
-    [self willChangeValueForKey:@"updateInterval"];
     [self synchronizeUpdateInterval];
-    [self didChangeValueForKey:@"updateInterval"];
     
     [textLineWell bind:SKLineWellLineWidthKey toObject:sudc 
withKeyPath:VALUES_KEY_PATH(SKFreeTextNoteLineWidthKey) options:nil];
     [textLineWell bind:SKLineWellStyleKey toObject:sudc 
withKeyPath:VALUES_KEY_PATH(SKFreeTextNoteLineStyleKey) options:nil];
@@ -311,9 +309,7 @@
             [self updateRevertButtons];
         }
     } else if (context == SKPreferenceWindowUpdaterObservationContext) {
-        [self willChangeValueForKey:@"updateInterval"];
         [self synchronizeUpdateInterval];
-        [self didChangeValueForKey:@"updateInterval"];
     } else {
         [super observeValueForKeyPath:keyPath ofObject:object change:change 
context:context];
     }
@@ -341,7 +337,10 @@
             [[SUUpdater sharedUpdater] setUpdateCheckInterval:i];
         }
     }
+    
+    [self willChangeValueForKey:@"updateInterval"];
     updateInterval = i;
+    [self didChangeValueForKey:@"updateInterval"];
 }
 
 - (void)updateRevertButtons {


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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to