X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/358cf707744dbfe1c85eebc7c44d7cf98bdd42e4..8cd402b5d3e43c95046af7ac0e4cb3cde2d622bc:/StatusWindow.m?ds=inline 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;