Make project tooltip explain itself.
1.1 --- a/TimeMon.m Fri Sep 25 22:44:53 2009 -0400
1.2 +++ b/TimeMon.m Fri Sep 25 22:55:27 2009 -0400
1.3 @@ -471,9 +471,11 @@
1.4 }
1.5
1.6 - (NSString *)outlineView:(NSOutlineView *)ov toolTipForCell:(NSCell *)cell rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tc item:(id)item mouseLocation:(NSPoint)mouseLocation{
1.7 - if (ov == projectBox)
1.8 - return [[[item representedObject] valueForKey:@"duration"] shortDescription];
1.9 -
1.10 + if (ov == projectBox){
1.11 + //return the project's duration
1.12 + NSString *duration = [[[item representedObject] valueForKey:@"duration"] shortDescription];
1.13 + return [NSString stringWithFormat:NSLocalizedString(@"Duration: %@", @"Project tooltip showing duration"), duration];
1.14 + }
1.15 return nil;
1.16 }
1.17