// // CLStringNumberValueTransformer.m // // Created by Alex Clarke on 15/01/05. // 2005 CocoaLab. All rights reserved. // #import "CLStringNumberValueTransformer.h" @implementation CLStringNumberValueTransformer + (Class)transformedValueClass; { return [NSNumber class]; } + (BOOL)allowsReverseTransformation; { return YES; } - (id)transformedValue:(id)value; { NSString * valueString = [value stringValue]; return valueString; } - (id)reverseTransformedValue:(id)value { int valueInt = [value intValue]; NSNumber * valueNumber = [NSNumber numberWithInt:valueInt]; return valueNumber; } @end @implementation NGAStringToNumberValueTransformer + (Class)transformedValueClass; { return [NSString class]; } + (BOOL)allowsReverseTransformation; { return YES; } - (id)reverseTransformedValue:(id)value { NSString * valueString = [value stringValue]; return valueString; } - (id)transformedValue:(id)value; { int valueInt = [value intValue]; NSNumber * valueNumber = [NSNumber numberWithInt:valueInt]; return valueNumber; } @end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 20722 | jdputsch | initial branch, prep for -Zapp= support | ||
//guest/michael_bishop/MacMenu/src/P4ObjectLayer/CLStringNumberValueTransformer.m | |||||
#1 | 8331 | Matt Attaway |
Adding initial version of MacMenu for Perforce MacMenu is a helpful Perforce client that sits in your toolbar. It allows you to run standard Perforce operations on the document that is open the currently active editor/viewer. |