mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
21 lines
319 B
Mathematica
21 lines
319 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
|