Revision: 4103
http://skim-app.svn.sourceforge.net/skim-app/?rev=4103&view=rev
Author: hofman
Date: 2008-06-29 06:36:20 -0700 (Sun, 29 Jun 2008)
Log Message:
-----------
Use proper method to stop checking for file updates when the window closes.
Kqueue notifications work with string objects compared with pointer-equality
rather than isEqual. The current behavior may prevent removing the kqueue item,
which also keeps ownership over the file.
Modified Paths:
--------------
trunk/SKPDFDocument.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2008-06-29 12:52:54 UTC (rev 4102)
+++ trunk/SKPDFDocument.m 2008-06-29 13:36:20 UTC (rev 4103)
@@ -1345,9 +1345,7 @@
// 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;
+ [self stopCheckingFileUpdates];
}
}
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://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit