Revision: 3305
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3305&view=rev
Author:   hofman
Date:     2007-12-03 08:41:43 -0800 (Mon, 03 Dec 2007)

Log Message:
-----------
Some fixes to remote state indication window.

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

Modified: trunk/SKRemoteStateWindow.m
===================================================================
--- trunk/SKRemoteStateWindow.m 2007-12-03 16:31:12 UTC (rev 3304)
+++ trunk/SKRemoteStateWindow.m 2007-12-03 16:41:43 UTC (rev 3305)
@@ -58,10 +58,6 @@
     return sharedRemoteStateWindow;
 }
 
-+ (void)showWithType:(int)remoteState atPoint:(NSPoint)point 
timeout:(NSTimeInterval)timeout {
-    [[[self class] sharedRemoteStateWindow] showWithType:remoteState 
atPoint:point timeout:timeout];
-}
-
 - (id)init {
     NSRect contentRect = SKRectFromCenterAndSize(NSZeroPoint, 
SKMakeSquareSize(60.0));
     if (self = [super initWithContentRect:contentRect 
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) {
@@ -88,7 +84,12 @@
     [self setAlphaValue:1.0];
 }
 
-- (void)animationDidStop:(NSAnimation *)animation { [self close]; }
+- (void)animationDidStop:(NSAnimation *)animation {
+    [animation release];
+    animation = nil;
+    [self orderOut:self];
+    [self setAlphaValue:1.0];
+}
 
 - (void)fadeOut:(id)sender {
     [timer invalidate];
@@ -120,6 +121,10 @@
     timer = [[NSTimer scheduledTimerWithTimeInterval:timeout target:self 
selector:@selector(fadeOut:) userInfo:nil repeats:NO] retain];
 }
 
++ (void)showWithType:(int)remoteState atPoint:(NSPoint)point 
timeout:(NSTimeInterval)timeout {
+    [[[self class] sharedRemoteStateWindow] showWithType:remoteState 
atPoint:point timeout:timeout];
+}
+
 @end
 
 #pragma mark -
@@ -132,6 +137,7 @@
 
 - (void)setRemoteState:(int)newRemoteState {
     remoteState = newRemoteState;
+    [self setNeedsDisplay:YES];
 }
 
 - (void)drawRect:(NSRect)rect {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to