Revision: 16796
          http://sourceforge.net/p/skim-app/code/16796
Author:   hofman
Date:     2026-11-12 10:15:44 +0000 (Thu, 12 Nov 2026)
Log Message:
-----------
rename takeSnapshot: to selectSnapshot: to avoid bug in AltTab

Modified Paths:
--------------
    trunk/Base.lproj/MainMenu.xib
    trunk/SKMainWindowController_Actions.h
    trunk/SKMainWindowController_Actions.m
    trunk/SKMainWindowController_UI.m
    trunk/SKPDFView.h
    trunk/SKPDFView.m

Modified: trunk/Base.lproj/MainMenu.xib
===================================================================
--- trunk/Base.lproj/MainMenu.xib       2026-11-11 22:42:27 UTC (rev 16795)
+++ trunk/Base.lproj/MainMenu.xib       2026-11-12 10:15:44 UTC (rev 16796)
@@ -164,7 +164,7 @@
                             <menuItem title="Take Snapshot" tag="2" 
keyEquivalent="s" id="660">
                                 <modifierMask key="keyEquivalentModifierMask" 
option="YES" command="YES"/>
                                 <connections>
-                                    <action selector="takeSnapshot:" 
target="-1" id="663"/>
+                                    <action selector="selectSnapshot:" 
target="-1" id="llF-vb-1Q7"/>
                                 </connections>
                             </menuItem>
                             <menuItem isSeparatorItem="YES" id="662">

Modified: trunk/SKMainWindowController_Actions.h
===================================================================
--- trunk/SKMainWindowController_Actions.h      2026-11-11 22:42:27 UTC (rev 
16795)
+++ trunk/SKMainWindowController_Actions.h      2026-11-12 10:15:44 UTC (rev 
16796)
@@ -53,7 +53,7 @@
 - (IBAction)editNote:(nullable id)sender;
 - (IBAction)autoSizeNote:(nullable id)sender;
 - (IBAction)toggleHideNotes:(nullable id)sender;
-- (IBAction)takeSnapshot:(nullable id)sender;
+- (IBAction)selectSnapshot:(nullable id)sender;
 - (IBAction)changeDisplayTwoUp:(nullable id)sender;
 - (IBAction)changeDisplayContinuous:(nullable id)sender;
 - (IBAction)changeDisplayMode:(nullable id)sender;

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2026-11-11 22:42:27 UTC (rev 
16795)
+++ trunk/SKMainWindowController_Actions.m      2026-11-12 10:15:44 UTC (rev 
16796)
@@ -301,8 +301,8 @@
     [pdfView setHideNotes:[pdfView hideNotes] == NO];
 }
 
-- (IBAction)takeSnapshot:(id)sender{
-    [pdfView takeSnapshot:sender];
+- (IBAction)selectSnapshot:(id)sender{
+    [pdfView selectSnapshot:sender];
 }
 
 - (IBAction)changeDisplayTwoUp:(id)sender {

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2026-11-11 22:42:27 UTC (rev 16795)
+++ trunk/SKMainWindowController_UI.m   2026-11-12 10:15:44 UTC (rev 16796)
@@ -1865,7 +1865,7 @@
         return mwcFlags.hasCropped && [self interactionMode] != 
SKPresentationMode && [[self pdfDocument] isLocked] == NO;
     } else if (action == @selector(autoSelectContent:)) {
         return [self interactionMode] != SKPresentationMode && [self 
hasOverview] == NO && [[self pdfDocument] isLocked] == NO && [pdfView toolMode] 
== SKToolModeSelect;
-    } else if (action == @selector(takeSnapshot:)) {
+    } else if (action == @selector(selectSnapshot:)) {
         return [[self pdfDocument] isLocked] == NO && [self hasOverview] == NO;
     } else if (action == @selector(toggleLeftSidePane:)) {
         if ([self leftSidePaneIsOpen])

Modified: trunk/SKPDFView.h
===================================================================
--- trunk/SKPDFView.h   2026-11-11 22:42:27 UTC (rev 16795)
+++ trunk/SKPDFView.h   2026-11-12 10:15:44 UTC (rev 16796)
@@ -236,7 +236,7 @@
 - (void)displayLineAtPoint:(NSPoint)point inPageAtIndex:(NSUInteger)pageIndex 
select:(BOOL)select showReadingBar:(BOOL)showBar;
 - (void)zoomToRect:(NSRect)rect onPage:(PDFPage *)page;
 
-- (void)takeSnapshot:(nullable id)sender;
+- (void)selectSnapshot:(nullable id)sender;
 
 - (void)resetPDFToolTipRects;
 - (void)removePDFToolTipRects;

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-11-11 22:42:27 UTC (rev 16795)
+++ trunk/SKPDFView.m   2026-11-12 10:15:44 UTC (rev 16796)
@@ -1937,7 +1937,7 @@
     
     [menu insertItem:[NSMenuItem separatorItem] atIndex:0];
     
-    item = [menu insertItemWithTitle:NSLocalizedString(@"Take Snapshot", 
@"Menu item title") action:@selector(takeSnapshot:) target:self atIndex:0];
+    item = [menu insertItemWithTitle:NSLocalizedString(@"Take Snapshot", 
@"Menu item title") action:@selector(selectSnapshot:) target:self atIndex:0];
     [item setRepresentedObject:pointValue];
     
     if ([self canSelectNote]) {
@@ -3008,7 +3008,7 @@
 
 #pragma mark Snapshots
 
-- (void)takeSnapshot:(id)sender {
+- (void)selectSnapshot:(id)sender {
     if ([[self delegate] 
respondsToSelector:@selector(PDFView:showSnapshotAtPage:forRect:scaleFactor:autoFits:)]
 == NO) {
         NSBeep();
         return;
@@ -3309,7 +3309,7 @@
         return [[self currentSelection] hasCharacters] != 0;
     } else if (action == @selector(autoSelectContent:)) {
         return toolMode == SKToolModeSelect;
-    } else if (action == @selector(takeSnapshot:)) {
+    } else if (action == @selector(selectSnapshot:)) {
         return [[self document] isLocked] == NO;
     } else if (action == @selector(_setSinglePageScrolling:)) {
         [menuItem setState:[self extendedDisplayMode] == 
kPDFDisplaySinglePageContinuous ? NSControlStateValueOn : 
NSControlStateValueOff];

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