Revision: 7658
http://skim-app.svn.sourceforge.net/skim-app/?rev=7658&view=rev
Author: hofman
Date: 2012-02-20 13:20:24 +0000 (Mon, 20 Feb 2012)
Log Message:
-----------
Only reload note table when note changes if the relevant column is shown
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2012-02-20 12:48:08 UTC (rev 7657)
+++ trunk/SKMainWindowController.m 2012-02-20 13:20:24 UTC (rev 7658)
@@ -116,6 +116,9 @@
#define SNAPSHOTS_KEY @"snapshots"
#define PAGE_COLUMNID @"page"
+#define COLOR_COLUMNID @"color"
+#define AUTHOR_COLUMNID @"author"
+#define DATE_COLUMNID @"date"
#define RELEVANCE_COLUMNID @"relevance"
#define RESULTS_COLUMNID @"results"
@@ -2283,7 +2286,11 @@
if ([[note type] isEqualToString:SKNNoteString] && [keyPath
isEqualToString:SKNPDFAnnotationBoundsKey])
[pdfView resetPDFToolTipRects];
- if ([keyPath isEqualToString:SKNPDFAnnotationBoundsKey] ||
[keyPath isEqualToString:SKNPDFAnnotationStringKey] || [keyPath
isEqualToString:SKNPDFAnnotationTextKey] || [keyPath
isEqual:SKNPDFAnnotationColorKey] || [keyPath
isEqualToString:SKNPDFAnnotationUserNameKey] || [keyPath
isEqualToString:SKNPDFAnnotationModificationDateKey]) {
+ NSArray *columnIDs = [rightSideController.noteOutlineView
tableColumnIdentifiers];
+ if ([keyPath isEqualToString:SKNPDFAnnotationBoundsKey] ||
[keyPath isEqualToString:SKNPDFAnnotationStringKey] || [keyPath
isEqualToString:SKNPDFAnnotationTextKey] ||
+ ([keyPath isEqualToString:SKNPDFAnnotationColorKey] &&
[columnIDs containsObject:COLOR_COLUMNID]) ||
+ ([keyPath isEqualToString:SKNPDFAnnotationUserNameKey] &&
[columnIDs containsObject:AUTHOR_COLUMNID]) ||
+ ([keyPath isEqualToString:SKNPDFAnnotationModificationDateKey]
&& [columnIDs containsObject:DATE_COLUMNID])) {
[rightSideController.noteArrayController rearrangeObjects];
[rightSideController.noteOutlineView reloadData];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit