Revision: 3564
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3564&view=rev
Author:   hofman
Date:     2008-03-27 05:40:38 -0700 (Thu, 27 Mar 2008)

Log Message:
-----------
Remove observer for file auto check pref when window will close rather than 
dealloc, as we may have not registered for this.

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

Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m  2008-03-26 23:39:57 UTC (rev 3563)
+++ trunk/SKDocument.m  2008-03-27 12:40:38 UTC (rev 3564)
@@ -113,7 +113,6 @@
 @implementation SKDocument
 
 - (void)dealloc {
-    [[NSUserDefaultsController sharedUserDefaultsController] 
removeObserver:self forKey:SKAutoCheckFileUpdateKey];
     [[NSNotificationCenter defaultCenter] removeObserver:self];
     [synchronizer stopDOServer];
     [synchronizer release];
@@ -1213,6 +1212,7 @@
     NSWindow *window = [notification object];
     // ignore when we're switching fullscreen/main windows
     if ([window isEqual:[[window windowController] window]]) {
+        [[NSUserDefaultsController sharedUserDefaultsController] 
removeObserver:self forKey:SKAutoCheckFileUpdateKey];
         [[UKKQueue sharedFileWatcher] removePath:[self fileName]];
         [fileUpdateTimer invalidate];
         fileUpdateTimer = nil;


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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to