Revision: 15911
http://sourceforge.net/p/skim-app/code/15911
Author: hofman
Date: 2025-12-23 15:06:01 +0000 (Tue, 23 Dec 2025)
Log Message:
-----------
rename method
Modified Paths:
--------------
trunk/PDFView_SKExtensions.h
trunk/PDFView_SKExtensions.m
trunk/SKMainDocument.m
trunk/SKMainWindowController.m
trunk/SKMainWindowController_Actions.m
Modified: trunk/PDFView_SKExtensions.h
===================================================================
--- trunk/PDFView_SKExtensions.h 2025-12-23 10:38:43 UTC (rev 15910)
+++ trunk/PDFView_SKExtensions.h 2025-12-23 15:06:01 UTC (rev 15911)
@@ -67,7 +67,7 @@
- (nullable PDFPage *)pageAndPoint:(NSPoint * _Nullable)point
forEvent:(NSEvent *)event nearest:(BOOL)nearest;
-- (SKDestination)skDestination:(BOOL)invalidatePointWhenRotated;
+- (SKDestination)currentSKDestination:(BOOL)invalidatePointWhenRotated;
- (void)goToSKDestination:(SKDestination)destination;
- (void)goAndScrollToPage:(PDFPage *)page;
Modified: trunk/PDFView_SKExtensions.m
===================================================================
--- trunk/PDFView_SKExtensions.m 2025-12-23 10:38:43 UTC (rev 15910)
+++ trunk/PDFView_SKExtensions.m 2025-12-23 15:06:01 UTC (rev 15911)
@@ -195,7 +195,7 @@
return page;
}
-- (SKDestination)skDestination:(BOOL)invalidatePointWhenRotated {
+- (SKDestination)currentSKDestination:(BOOL)invalidatePointWhenRotated {
PDFPage *page = [self currentPage];
NSPoint point = SKUnspecifiedPoint;
if ([[page document] isLocked] == NO && (invalidatePointWhenRotated == NO
|| [page rotation] == [page intrinsicRotation])) {
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2025-12-23 10:38:43 UTC (rev 15910)
+++ trunk/SKMainDocument.m 2025-12-23 15:06:01 UTC (rev 15911)
@@ -1780,7 +1780,7 @@
}
- (NSData *)currentQDPoint {
- SKDestination dest = [[self pdfView] skDestination:NO];
+ SKDestination dest = [[self pdfView] currentSKDestination:NO];
Point qdPoint = SKQDPointFromNSPoint(dest.point);
return [NSData dataWithBytes:&qdPoint length:sizeof(Point)];
}
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2025-12-23 10:38:43 UTC (rev 15910)
+++ trunk/SKMainWindowController.m 2025-12-23 15:06:01 UTC (rev 15911)
@@ -611,7 +611,7 @@
- (NSDictionary *)currentSetup {
NSMutableDictionary *setup = [NSMutableDictionary dictionary];
- SKDestination dest = [pdfView skDestination:YES];
+ SKDestination dest = [pdfView currentSKDestination:YES];
NSArray *cropBoxes = [[self pdfDocument] changedCropBoxes];
if ([self interactionMode] == SKPresentationMode)
@@ -1111,11 +1111,11 @@
// this is a revert
// need to clean up data and actions, and remember settings to restore
if (pageCount) {
- dest = [pdfView skDestination:YES];
+ dest = [pdfView currentSKDestination:YES];
if (dest.pageIndex >= pageCount && dest.pageIndex != NSNotFound)
dest = (SKDestination){pageCount - 1, SKUnspecifiedPoint};
if (secondaryPdfView) {
- secondaryDest = [secondaryPdfView skDestination:YES];
+ secondaryDest = [secondaryPdfView currentSKDestination:YES];
if (secondaryDest.pageIndex >= pageCount &&
secondaryDest.pageIndex != NSNotFound)
secondaryDest = (SKDestination){pageCount - 1,
SKUnspecifiedPoint};
}
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2025-12-23 10:38:43 UTC (rev
15910)
+++ trunk/SKMainWindowController_Actions.m 2025-12-23 15:06:01 UTC (rev
15911)
@@ -400,7 +400,7 @@
beforeMarkedPage.pageIndex = MIN(beforeMarkedPage.pageIndex, [pdfDoc
pageCount] - 1);
[pdfView goToSKDestination:beforeMarkedPage];
} else if (currentPageIndex != markedPage.pageIndex) {
- beforeMarkedPage = [pdfView skDestination:NO];
+ beforeMarkedPage = [pdfView currentSKDestination:NO];
markedPage.pageIndex = MIN(markedPage.pageIndex, [pdfDoc pageCount] -
1);
[pdfView goToSKDestination:markedPage];
}
@@ -413,7 +413,7 @@
[(SKThumbnailItem *)[overviewView itemAtIndexPath:[NSIndexPath
indexPathForItem:markedPage.pageIndex inSection:0]] setMarked:NO];
[[(NSTableCellView *)[leftSideController.thumbnailTableView
viewAtColumn:1 row:markedPage.pageIndex makeIfNecessary:NO] imageView]
setObjectValue:nil];
}
- markedPage = [pdfView skDestination:NO];
+ markedPage = [pdfView currentSKDestination:NO];
beforeMarkedPage.pageIndex = NSNotFound;
[(SKThumbnailItem *)[overviewView itemAtIndexPath:[NSIndexPath
indexPathForItem:markedPage.pageIndex inSection:0]] setMarked:YES];
[[(NSTableCellView *)[leftSideController.thumbnailTableView viewAtColumn:1
row:markedPage.pageIndex makeIfNecessary:NO] imageView] setObjectValue:[NSImage
markImage]];
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