mirror of
https://github.com/transmission/transmission
synced 2024-12-28 10:38:45 +00:00
22 lines
320 B
Mathematica
22 lines
320 B
Mathematica
|
|
||
|
#import "ExpandedPathToPathTransformer.h"
|
||
|
|
||
|
@implementation ExpandedPathToPathTransformer
|
||
|
|
||
|
+ (Class) transformedValueClass
|
||
|
{
|
||
|
return [NSString class];
|
||
|
}
|
||
|
|
||
|
+ (BOOL) allowsReverseTransformation
|
||
|
{
|
||
|
return NO;
|
||
|
}
|
||
|
|
||
|
- (id) transformedValue: (id) value
|
||
|
{
|
||
|
return value == nil ? nil : [value lastPathComponent];
|
||
|
}
|
||
|
|
||
|
|
||
|
@end
|