1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 15:54:57 +00:00
transmission/macosx/ExpandedPathToPathTransformer.mm

25 lines
515 B
Text
Raw Normal View History

// This file Copyright © Transmission authors and contributors.
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
2007-09-16 01:02:06 +00:00
#import "ExpandedPathToPathTransformer.h"
@implementation ExpandedPathToPathTransformer
+ (Class)transformedValueClass
2007-09-16 01:02:06 +00:00
{
return [NSString class];
}
+ (BOOL)allowsReverseTransformation
2007-09-16 01:02:06 +00:00
{
return NO;
}
- (id)transformedValue:(id)value
2007-09-16 01:02:06 +00:00
{
return value == nil ? nil : [NSFileManager.defaultManager displayNameAtPath:value];
2007-09-16 01:02:06 +00:00
}
@end