SourceForge: timemon/timemon: changeset 185:a6e288e7c6c9
Make project tooltip explain itself.
authorFrank <wixardy@ceresalto.ca>
Fri Sep 25 22:55:27 2009 -0400 (2 months ago)
changeset 185a6e288e7c6c9
parent 18495ebcec39cd5
child 1861774fe56155b
Make project tooltip explain itself.
TimeMon.m
     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