mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
21 lines
No EOL
319 B
Objective-C
21 lines
No EOL
319 B
Objective-C
|
|
#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 |