transmission/macosx/ExpandedPathToPathTransform...

25 lines
525 B
Plaintext
Raw Normal View History

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