The hotkey for showing track info now calls a different method that will hide the...
[MenuTunes.git] / StatusWindow.m
index 0fdc52d..6e4768f 100755 (executable)
         
 //      Display the window.
         [[self contentView] setNeedsDisplay:YES];
-
+               _textField = textField;
     }
 }
 
     }
 }
 
+- (void)updateTime:(NSString *)time range:(NSRange)range
+{
+       NSMutableAttributedString *string = [[_textField attributedStringValue] mutableCopy];
+       [string replaceCharactersInRange:range withString:time];
+       [_textField setAttributedStringValue:[string autorelease]];
+       [[self contentView] setNeedsDisplay:YES];
+}
+
 - (NSTimeInterval)animationResizeTime:(NSRect)newFrame
 {
     return (NSTimeInterval)0.25;