source: trunk/macosx/ActionMenuRatioToDisplayRatioTransformer.m @ 1125

Last change on this file since 1125 was 1049, checked in by livings124, 15 years ago

Use an NSDatePicker for the speed limit scheduler...this will require 10.4 for now.

File size: 492 bytes
Line 
1
2#import "ActionMenuRatioToDisplayRatioTransformer.h"
3
4@implementation ActionMenuRatioToDisplayRatioTransformer
5
6+ (Class) transformedValueClass
7{
8    return [NSString class];
9}
10
11+ (BOOL) allowsReverseTransformation
12{
13    return NO;
14}
15
16- (id) transformedValue: (id) value
17{
18    return value == nil ?  nil : [NSString stringWithFormat: NSLocalizedString(@"Stop at Ratio (%.2f)",
19                                                "Action context menu -> ratio stop"), [value floatValue]];
20}
21
22@end
Note: See TracBrowser for help on using the repository browser.