X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/5e4dec969868a410da088273791f228def3b36a7..8cd402b5d3e43c95046af7ac0e4cb3cde2d622bc:/StatusWindowController.m?ds=inline diff --git a/StatusWindowController.m b/StatusWindowController.m index e06176f..269681d 100755 --- a/StatusWindowController.m +++ b/StatusWindowController.m @@ -153,6 +153,7 @@ static StatusWindowController *sharedController; //text = [text stringByAppendingString:[@"\n" stringByAppendingString:composer]]; } if ( time ) { + _timeRange = NSMakeRange([[text mutableString] length] + 1, [time length]); [[text mutableString] appendFormat:@"\n%@", time]; //text = [text stringByAppendingString:[@"\n" stringByAppendingString:time]]; } @@ -353,4 +354,11 @@ static StatusWindowController *sharedController; [_window setLocked:YES]; } +- (void)updateTime:(NSString *)time +{ + if (time && [time length]) { + [_window updateTime:time range:_timeRange]; + } +} + @end \ No newline at end of file