Revision: 12457 http://sourceforge.net/p/skim-app/code/12457 Author: hofman Date: 2021-10-05 16:20:22 +0000 (Tue, 05 Oct 2021) Log Message: ----------- override methods for bug workarounds rather than define replacement methods
Modified Paths: -------------- trunk/SKBasePDFView.m Modified: trunk/SKBasePDFView.m =================================================================== --- trunk/SKBasePDFView.m 2021-10-05 16:17:58 UTC (rev 12456) +++ trunk/SKBasePDFView.m 2021-10-05 16:20:22 UTC (rev 12457) @@ -228,7 +228,7 @@ } } -- (void)replacement_goToRect:(NSRect)rect onPage:(PDFPage *)page { +- (void)goToRect:(NSRect)rect onPage:(PDFPage *)page { if (RUNNING(10_13)) { NSView *docView = [self documentView]; if ([self isPageAtIndexDisplayed:[page pageIndex]] == NO) @@ -239,7 +239,7 @@ } } -- (void)replacement_setCurrentSelection:(PDFSelection *)currentSelection { +- (void)setCurrentSelection:(PDFSelection *)currentSelection { if (RUNNING(10_12) && currentSelection == nil) currentSelection = [[[PDFSelection alloc] initWithDocument:[self document]] autorelease]; [super setCurrentSelection:currentSelection]; @@ -254,7 +254,7 @@ #pragma clang diagnostic pop -- (void)replacement_goToPreviousPage:(id)sender { +- (void)goToPreviousPage:(id)sender { if (hasHorizontalLayout(self) && [self canGoToPreviousPage]) { PDFDocument *doc = [self document]; PDFPage *page = [doc pageAtIndex:[doc indexForPage:[self currentPage]] - 1]; @@ -264,7 +264,7 @@ } } -- (void)replacement_goToNextPage:(id)sender { +- (void)goToNextPage:(id)sender { if (hasHorizontalLayout(self) && [self canGoToNextPage]) { PDFDocument *doc = [self document]; PDFPage *page = [doc pageAtIndex:[doc indexForPage:[self currentPage]] + 1]; @@ -274,7 +274,7 @@ } } -- (void)replacement_goToFirstPage:(id)sender { +- (void)goToFirstPage:(id)sender { if (hasHorizontalLayout(self) && [self canGoToFirstPage]) { PDFDocument *doc = [self document]; PDFPage *page = [doc pageAtIndex:0]; @@ -284,7 +284,7 @@ } } -- (void)replacement_goToLastPage:(id)sender { +- (void)goToLastPage:(id)sender { if (hasHorizontalLayout(self) && [self canGoToLastPage]) { PDFDocument *doc = [self document]; PDFPage *page = [doc pageAtIndex:[doc pageCount] - 1]; @@ -294,7 +294,7 @@ } } -- (void)replacement_goToPage:(PDFPage *)page { +- (void)goToPage:(PDFPage *)page { if (hasHorizontalLayout(self)) { NSRect bounds = [page boundsForBox:[self displayBox]]; if ([self displaysPageBreaks]) { 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