Revision: 3891
http://skim-app.svn.sourceforge.net/skim-app/?rev=3891&view=rev
Author: hofman
Date: 2008-05-18 04:54:27 -0700 (Sun, 18 May 2008)
Log Message:
-----------
Regroup change notifications.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-05-18 10:29:53 UTC (rev 3890)
+++ trunk/SKMainWindowController.m 2008-05-18 11:54:27 UTC (rev 3891)
@@ -2946,16 +2946,16 @@
[[statusBar progressIndicator] setMaxValue:[[note object] pageCount]];
[[statusBar progressIndicator] setDoubleValue:0.0];
[statusBar startAnimation:self];
+ [self willChangeValueForKey:SKMainWindowSearchResultsKey];
+ [self willChangeValueForKey:SKMainWindowGroupedSearchResultsKey];
}
}
- (void)documentDidEndDocumentFind:(NSNotification *)note {
if (findPanelFind == NO) {
NSString *message = [NSString stringWithFormat:NSLocalizedString(@"%i
Results", @"Message in search table header"), [searchResults count]];
- [self willChangeValueForKey:SKMainWindowSearchResultsKey];
+ [self didChangeValueForKey:SKMainWindowGroupedSearchResultsKey];
[self didChangeValueForKey:SKMainWindowSearchResultsKey];
- [self willChangeValueForKey:SKMainWindowGroupedSearchResultsKey];
- [self didChangeValueForKey:SKMainWindowGroupedSearchResultsKey];
[[[findTableView
tableColumnWithIdentifier:SKMainWindowResultsColumnIdentifer] headerCell]
setStringValue:message];
[[findTableView headerView] setNeedsDisplay:YES];
[[[groupedFindTableView
tableColumnWithIdentifier:SKMainWindowRelevanceColumnIdentifer] headerCell]
setStringValue:message];
@@ -2969,10 +2969,10 @@
NSNumber *pageIndex = [[note userInfo]
objectForKey:@"PDFDocumentPageIndex"];
[[statusBar progressIndicator] setDoubleValue:[pageIndex doubleValue]];
if ([pageIndex unsignedIntValue] % 50 == 0) {
+ [self didChangeValueForKey:SKMainWindowGroupedSearchResultsKey];
+ [self didChangeValueForKey:SKMainWindowSearchResultsKey];
[self willChangeValueForKey:SKMainWindowSearchResultsKey];
- [self didChangeValueForKey:SKMainWindowSearchResultsKey];
[self willChangeValueForKey:SKMainWindowGroupedSearchResultsKey];
- [self didChangeValueForKey:SKMainWindowGroupedSearchResultsKey];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit