Revision: 7136
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7136&view=rev
Author:   hofman
Date:     2011-03-03 13:20:17 +0000 (Thu, 03 Mar 2011)

Log Message:
-----------
set file update checker document to nil before getting rid of it, just to be 
sure

Modified Paths:
--------------
    trunk/SKFileUpdateChecker.h
    trunk/SKFileUpdateChecker.m
    trunk/SKMainDocument.m

Modified: trunk/SKFileUpdateChecker.h
===================================================================
--- trunk/SKFileUpdateChecker.h 2011-03-02 18:15:15 UTC (rev 7135)
+++ trunk/SKFileUpdateChecker.h 2011-03-03 13:20:17 UTC (rev 7136)
@@ -57,6 +57,8 @@
     NSTimer *fileUpdateTimer;
 }
 
+@property (nonatomic, assign) NSDocument *document;
+
 - (id)initForDocument:(NSDocument *)aDocument;
 
 - (BOOL)fileChangedOnDisk;

Modified: trunk/SKFileUpdateChecker.m
===================================================================
--- trunk/SKFileUpdateChecker.m 2011-03-02 18:15:15 UTC (rev 7135)
+++ trunk/SKFileUpdateChecker.m 2011-03-03 13:20:17 UTC (rev 7136)
@@ -62,6 +62,8 @@
 
 @implementation SKFileUpdateChecker
 
+@synthesize document;
+
 - (id)initForDocument:(NSDocument *)aDocument {
     if (self = [super init]) {
         document = aDocument;

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2011-03-02 18:15:15 UTC (rev 7135)
+++ trunk/SKMainDocument.m      2011-03-03 13:20:17 UTC (rev 7136)
@@ -163,6 +163,7 @@
     [[NSNotificationCenter defaultCenter] removeObserver:self];
     // shouldn't need this here, but better be safe
     [fileUpdateChecker stopCheckingFileUpdates];
+    [fileUpdateChecker setDocument:nil];
     SKDESTROY(fileUpdateChecker);
     SKDESTROY(mainWindowController);
     [synchronizer terminate];
@@ -1320,6 +1321,7 @@
     // ignore when we're switching fullscreen/main windows
     if ([window isEqual:[[window windowController] window]]) {
         [fileUpdateChecker stopCheckingFileUpdates];
+        [fileUpdateChecker setDocument:nil];
         SKDESTROY(fileUpdateChecker);
         [self saveRecentDocumentInfo];
     }


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

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to