Revision: 5236
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5236&view=rev
Author:   hofman
Date:     2009-03-02 22:20:42 +0000 (Mon, 02 Mar 2009)

Log Message:
-----------
don't update updater interval before loading the UI

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

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2009-03-02 17:59:23 UTC (rev 5235)
+++ trunk/SKPreferenceController.m      2009-03-02 22:20:42 UTC (rev 5236)
@@ -82,8 +82,6 @@
         NSString *initialUserDefaultsPath = [[NSBundle mainBundle] 
pathForResource:SKPreferenceInitialUserDefaultsFileName ofType:@"plist"];
         resettableKeys = [[[NSDictionary 
dictionaryWithContentsOfFile:initialUserDefaultsPath] 
valueForKey:SKPreferenceResettableKeysKey] retain];
         
-        [self synchronizeUpdateInterval];
-        
         sud = [NSUserDefaults standardUserDefaults];
         sudc = [NSUserDefaultsController sharedUserDefaultsController];
         [sudc addObserver:self forKeys:[NSArray 
arrayWithObjects:SKDefaultPDFDisplaySettingsKey, 
SKDefaultFullScreenPDFDisplaySettingsKey, nil] 
context:SKPreferenceWindowDefaultsObservationContext];
@@ -133,6 +131,10 @@
     
     [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];
     [textLineWell bind:SKLineWellDashPatternKey toObject:sudc 
withKeyPath:VALUES_KEY_PATH(SKFreeTextNoteDashPatternKey) options:nil];
@@ -321,7 +323,7 @@
 
 - (void)synchronizeUpdateInterval {
     static NSIndexSet *updateIntervals = nil;
-    if (updateIntervals = nil) {
+    if (updateIntervals == nil) {
         NSMutableIndexSet *intervals = [NSMutableIndexSet indexSet];
         int i = [updateIntervalPopUpButton numberOfItems];
         while (--i > 0)


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