1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00
transmission/macosx/ExpandedPathToPathTransformer.mm

25 lines
525 B
Text
Raw Normal View History

// This file Copyright © 2007-2022 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