Cog/Preferences/Preferences/MIDIPluginFlavorTransformer.m
Christopher Snowhill 85c7073649 Reformat my own source code with clang-format
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-06 21:49:27 -08:00

26 lines
519 B
Objective-C

//
// PathToFileTransformer.m
// General
//
// Created by Christopher Snowhill on 11/29/16.
//
//
#import "MIDIPluginFlavorTransformer.h"
@implementation MIDIPluginFlavorTransformer
+ (Class)transformedValueClass {
return [NSNumber class];
}
+ (BOOL)allowsReverseTransformation {
return NO;
}
// Convert from string to NSURL
- (id)transformedValue:(id)value {
if(value == nil) return nil;
return [NSNumber numberWithBool:([value isEqualToString:@"Sc55rolD"] || [value isEqualToString:@"Sc55RoCl"])];
}
@end