X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/5e4dec969868a410da088273791f228def3b36a7..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;