Revision: 15225
          http://sourceforge.net/p/skim-app/code/15225
Author:   hofman
Date:     2025-05-17 15:52:41 +0000 (Sat, 17 May 2025)
Log Message:
-----------
rename method

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/SKPresentationView.h
    trunk/SKPresentationView.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2025-05-17 15:25:02 UTC (rev 15224)
+++ trunk/SKMainWindowController.m      2025-05-17 15:52:41 UTC (rev 15225)
@@ -2192,7 +2192,7 @@
         [presentationNotes addObject:annotation];
         if (page) {
             [self updateThumbnailAtPageIndex:[page pageIndex]];
-            [presentationView updatedAnnotationOnPage:page];
+            [presentationView setNeedsDisplayForPage:page];
         }
     } else {
         [[undoManager prepareWithInvocationTarget:[notification object]] 
removeAnnotation:annotation];
@@ -2216,7 +2216,7 @@
             }
             [secondaryPdfView addedAnnotation:annotation onPage:page];
             if ([self interactionMode] == SKPresentationMode)
-                [presentationView updatedAnnotationOnPage:page];
+                [presentationView setNeedsDisplayForPage:page];
         }
     }
 }
@@ -2234,7 +2234,7 @@
             [presentationNotes removeObject:annotation];
             if (page) {
                 [self updateThumbnailAtPageIndex:[page pageIndex]];
-                [presentationView updatedAnnotationOnPage:page];
+                [presentationView setNeedsDisplayForPage:page];
             }
         } else if (page) {
             [self updateThumbnailAtPageIndex:[page pageIndex]];
@@ -2264,7 +2264,7 @@
             }
             [secondaryPdfView removedAnnotation:annotation onPage:page];
             if ([self interactionMode] == SKPresentationMode)
-                [presentationView updatedAnnotationOnPage:page];
+                [presentationView setNeedsDisplayForPage:page];
         }
     }
 }
@@ -2289,8 +2289,8 @@
         [secondaryPdfView removedAnnotation:annotation onPage:oldPage];
         [secondaryPdfView addedAnnotation:annotation onPage:newPage];
         if ([self interactionMode] == SKPresentationMode) {
-            [presentationView updatedAnnotationOnPage:oldPage];
-            [presentationView updatedAnnotationOnPage:newPage];
+            [presentationView setNeedsDisplayForPage:oldPage];
+            [presentationView setNeedsDisplayForPage:newPage];
         }
     }
     
@@ -2731,7 +2731,7 @@
                 [secondaryPdfView updatedAnnotation:note];
                 
                 if ([self interactionMode] == SKPresentationMode)
-                    [presentationView updatedAnnotationOnPage:page];
+                    [presentationView setNeedsDisplayForPage:page];
 
                 if ([keyPath isEqualToString:SKNPDFAnnotationBoundsKey] && 
note == [pdfView currentAnnotation] && [[NSUserDefaults standardUserDefaults] 
boolForKey:SKDisplayNoteBoundsKey])
                     [self updateRightStatus];

Modified: trunk/SKPresentationView.h
===================================================================
--- trunk/SKPresentationView.h  2025-05-17 15:25:02 UTC (rev 15224)
+++ trunk/SKPresentationView.h  2025-05-17 15:52:41 UTC (rev 15225)
@@ -115,7 +115,7 @@
 - (void)didOpen;
 - (void)willClose;
 
-- (void)updatedAnnotationOnPage:(PDFPage *)aPage;
+- (void)setNeedsDisplayForPage:(PDFPage *)aPage;
 
 @end
 

Modified: trunk/SKPresentationView.m
===================================================================
--- trunk/SKPresentationView.m  2025-05-17 15:25:02 UTC (rev 15224)
+++ trunk/SKPresentationView.m  2025-05-17 15:52:41 UTC (rev 15225)
@@ -464,7 +464,7 @@
     [self displayCurrentPage:nil];
 }
 
-- (void)updatedAnnotationOnPage:(PDFPage *)aPage {
+- (void)setNeedsDisplayForPage:(PDFPage *)aPage {
     if (page == aPage) {
         [self removePredrawnImageAtIndex:[aPage pageIndex]];
         [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(displayCurrentPage:) object:nil];

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to