2016-11-29 23:46:38 +00:00
|
|
|
//
|
|
|
|
// 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;
|
|
|
|
|
2017-12-28 02:57:41 +00:00
|
|
|
return [NSNumber numberWithBool:([value isEqualToString:@"Sc55rolD"] || [value isEqualToString:@"Sc55RoCl"])];
|
2016-11-29 23:46:38 +00:00
|
|
|
}
|
|
|
|
@end
|