Implemented time ticking in song info status window.
[MenuTunes.git] / StatusWindowController.m
index e06176f..269681d 100755 (executable)
@@ -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