X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/358cf707744dbfe1c85eebc7c44d7cf98bdd42e4..b27aba7ff5351d788e6250b7dd0e38c15a001817:/StatusWindow.m diff --git a/StatusWindow.m b/StatusWindow.m index 0fdc52d..6e4768f 100755 --- a/StatusWindow.m +++ b/StatusWindow.m @@ -256,7 +256,7 @@ // Display the window. [[self contentView] setNeedsDisplay:YES]; - + _textField = textField; } } @@ -491,6 +491,14 @@ } } +- (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;