Revision: 15143
          http://sourceforge.net/p/skim-app/code/15143
Author:   hofman
Date:     2025-05-02 16:21:52 +0000 (Fri, 02 May 2025)
Log Message:
-----------
initialize all ivars

Modified Paths:
--------------
    trunk/SKImageToolTipWindow.m

Modified: trunk/SKImageToolTipWindow.m
===================================================================
--- trunk/SKImageToolTipWindow.m        2025-05-02 16:14:03 UTC (rev 15142)
+++ trunk/SKImageToolTipWindow.m        2025-05-02 16:21:52 UTC (rev 15143)
@@ -81,6 +81,8 @@
         [self setAutoHideTimeInterval:AUTO_HIDE_TIME_INTERVAL];
         context = nil;
         point = NSZeroPoint;
+        image = nil;
+        shouldShow = NO;
         
         [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(orderOut:) 
                                                      
name:NSApplicationWillResignActiveNotification object:NSApp];
@@ -182,6 +184,7 @@
             NSImage *anImage = [aContext toolTipImageWithScale:usedScale];
             
             dispatch_async(dispatch_get_main_queue(), ^{
+                
                 // check if another image is enerated or we are fading out
                 if (aContext == context) {
                     image = anImage;
@@ -190,7 +193,9 @@
                     else if (shouldShow)
                         [self show];
                 }
+                
             });
+            
         });
         
         [self performSelector:@selector(showDelayed) withObject:nil 
afterDelay:[self isVisible] ? ALT_SHOW_DELAY : DEFAULT_SHOW_DELAY];

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

Reply via email to