Revision: 15332
http://sourceforge.net/p/skim-app/code/15332
Author: hofman
Date: 2025-05-30 14:25:00 +0000 (Fri, 30 May 2025)
Log Message:
-----------
remove image tooltip window on resign key or main through delegate methods
Modified Paths:
--------------
trunk/SKMainWindow.m
trunk/SKMainWindowController_UI.m
Modified: trunk/SKMainWindow.m
===================================================================
--- trunk/SKMainWindow.m 2025-05-30 14:17:30 UTC (rev 15331)
+++ trunk/SKMainWindow.m 2025-05-30 14:25:00 UTC (rev 15332)
@@ -37,7 +37,6 @@
*/
#import "SKMainWindow.h"
-#import "SKImageToolTipWindow.h"
#import "NSResponder_SKExtensions.h"
#import "NSEvent_SKExtensions.h"
@@ -113,16 +112,6 @@
[super sendEvent:theEvent];
}
-- (void)resignMainWindow {
- [[SKImageToolTipWindow sharedToolTipWindow] orderOut:nil];
- [super resignMainWindow];
-}
-
-- (void)resignKeyWindow {
- [[SKImageToolTipWindow sharedToolTipWindow] orderOut:nil];
- [super resignKeyWindow];
-}
-
- (void)performClose:(id)sender {
if ([self delegate])
[super performClose:sender];
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2025-05-30 14:17:30 UTC (rev 15331)
+++ trunk/SKMainWindowController_UI.m 2025-05-30 14:25:00 UTC (rev 15332)
@@ -245,8 +245,15 @@
}
}
+- (void)windowDidResignKey:(NSNotification *)notification {
+ if ([[self window] isEqual:[notification object]]) {
+ [[SKImageToolTipWindow sharedToolTipWindow] orderOut:nil];
+ }
+}
+
- (void)windowDidResignMain:(NSNotification *)notification {
if ([[self window] isEqual:[notification object]]) {
+ [[SKImageToolTipWindow sharedToolTipWindow] orderOut:nil];
if ([[[NSColorPanel sharedColorPanel] accessoryView]
isEqual:colorAccessoryView])
[[NSColorPanel sharedColorPanel] setAccessoryView:nil];
if ([self interactionMode] == SKPresentationMode && [[NSUserDefaults
standardUserDefaults] boolForKey:SKUseNormalLevelForPresentationKey] == NO)
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