Revision: 13481
          http://sourceforge.net/p/skim-app/code/13481
Author:   hofman
Date:     2023-06-15 22:59:11 +0000 (Thu, 15 Jun 2023)
Log Message:
-----------
override selectAll: and deselectAll: in overview, as the default implementation 
does not trigger KVO notification for the selection

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

Modified: trunk/SKOverviewView.m
===================================================================
--- trunk/SKOverviewView.m      2023-06-15 22:43:22 UTC (rev 13480)
+++ trunk/SKOverviewView.m      2023-06-15 22:59:11 UTC (rev 13481)
@@ -131,4 +131,13 @@
         [cachedViews addObject:view];
 }
 
+- (void)selectAll:(id)sender {
+    if ([self numberOfSections])
+        [self setSelectionIndexes:[NSIndexSet 
indexSetWithIndexesInRange:NSMakeRange(0, [self numberOfItemsInSection:0])]];
+}
+
+- (void)deselectAll:(id)sender {
+    [self setSelectionIndexes:[NSIndexSet indexSet]];
+}
+
 @end

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to