Revision: 14967 http://sourceforge.net/p/skim-app/code/14967 Author: hofman Date: 2025-03-12 23:20:29 +0000 (Wed, 12 Mar 2025) Log Message: ----------- override respondsToSelector in base pdfview
Modified Paths: -------------- trunk/SKBasePDFView.m trunk/SKPDFView.m trunk/SKSecondaryPDFView.m trunk/SKSnapshotPDFView.m Modified: trunk/SKBasePDFView.m =================================================================== --- trunk/SKBasePDFView.m 2025-03-12 23:16:23 UTC (rev 14966) +++ trunk/SKBasePDFView.m 2025-03-12 23:20:29 UTC (rev 14967) @@ -190,6 +190,10 @@ } } +- (BOOL)respondsToSelector:(SEL)aSelector { + return aSelector != @selector(printDocument:) && [super respondsToSelector:aSelector]; +} + #pragma mark Bug fixes - (void)setDocument:(PDFDocument *)document { Modified: trunk/SKPDFView.m =================================================================== --- trunk/SKPDFView.m 2025-03-12 23:16:23 UTC (rev 14966) +++ trunk/SKPDFView.m 2025-03-12 23:20:29 UTC (rev 14967) @@ -1442,10 +1442,6 @@ // we don't want to steal the printDocument: action from the responder chain - (void)printDocument:(id)sender{} -- (BOOL)respondsToSelector:(SEL)aSelector { - return aSelector != @selector(printDocument:) && [super respondsToSelector:aSelector]; -} - - (BOOL)canZoomIn { return [[self document] isLocked] == NO && [super canZoomIn]; } Modified: trunk/SKSecondaryPDFView.m =================================================================== --- trunk/SKSecondaryPDFView.m 2025-03-12 23:16:23 UTC (rev 14966) +++ trunk/SKSecondaryPDFView.m 2025-03-12 23:20:29 UTC (rev 14967) @@ -530,10 +530,6 @@ // we don't want to steal the printDocument: action from the responder chain - (void)printDocument:(id)sender{} -- (BOOL)respondsToSelector:(SEL)aSelector { - return aSelector != @selector(printDocument:) && [super respondsToSelector:aSelector]; -} - - (NSMenu *)menuForEvent:(NSEvent *)theEvent { static NSSet *selectionActions = nil; if (selectionActions == nil) Modified: trunk/SKSnapshotPDFView.m =================================================================== --- trunk/SKSnapshotPDFView.m 2025-03-12 23:16:23 UTC (rev 14966) +++ trunk/SKSnapshotPDFView.m 2025-03-12 23:20:29 UTC (rev 14967) @@ -499,10 +499,6 @@ // we don't want to steal the printDocument: action from the responder chain - (void)printDocument:(id)sender{} -- (BOOL)respondsToSelector:(SEL)aSelector { - return aSelector != @selector(printDocument:) && [super respondsToSelector:aSelector]; -} - - (NSMenu *)menuForEvent:(NSEvent *)theEvent { static NSSet *selectionActions = nil; if (selectionActions == 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