Revision: 3011
http://skim-app.svn.sourceforge.net/skim-app/?rev=3011&view=rev
Author: hofman
Date: 2007-10-02 17:18:56 -0700 (Tue, 02 Oct 2007)
Log Message:
-----------
Hide hover window after 7 seconds, as tool tips do.
Modified Paths:
--------------
trunk/SKPDFHoverWindow.m
Modified: trunk/SKPDFHoverWindow.m
===================================================================
--- trunk/SKPDFHoverWindow.m 2007-10-02 20:53:56 UTC (rev 3010)
+++ trunk/SKPDFHoverWindow.m 2007-10-03 00:18:56 UTC (rev 3011)
@@ -176,6 +176,12 @@
[super orderOut:sender];
}
+- (void)hideWithTimer:(NSTimer *)aTimer {
+ [self stopTimer];
+ [animation stopAnimation];
+ [self hide];
+}
+
- (void)showWithTimer:(NSTimer *)aTimer {
NSUserDefaults *sud = [NSUserDefaults standardUserDefaults];
NSPoint thePoint = NSEqualPoints(point, NSZeroPoint) ? [NSEvent
mouseLocation] : point;
@@ -317,6 +323,9 @@
[animation setDelegate:self];
[animation startAnimation];
}
+
+ timer = [[NSTimer scheduledTimerWithTimeInterval:7.0 target:self
selector:@selector(hideWithTimer:) userInfo:NULL repeats:NO] retain];
+
} else {
[self hide];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit