Revision: 16045
          http://sourceforge.net/p/skim-app/code/16045
Author:   hofman
Date:     2026-02-08 16:03:21 +0000 (Sun, 08 Feb 2026)
Log Message:
-----------
willChangeValueForKey just before change

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

Modified: trunk/SKGroupedSearchResult.m
===================================================================
--- trunk/SKGroupedSearchResult.m       2026-02-08 15:41:41 UTC (rev 16044)
+++ trunk/SKGroupedSearchResult.m       2026-02-08 16:03:21 UTC (rev 16045)
@@ -80,7 +80,6 @@
 }
 
 - (void)addMatch:(PDFSelection *)match {
-    [self willChangeValueForKey:SKGroupedSearchResultCountKey];
     CGFloat order = [match boundsOrderForPage:page];
     NSInteger i = [matches count];
     while (i-- > 0) {
@@ -88,6 +87,7 @@
         if (order >= [prevResult boundsOrderForPage:page])
             break;
     }
+    [self willChangeValueForKey:SKGroupedSearchResultCountKey];
     [matches insertObject:match atIndex:i + 1];
     [self didChangeValueForKey:SKGroupedSearchResultCountKey];
 }

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