copyを返すように変更
逆変換が出来ない事を宣言
});
}
++ (Class)transformedValueClass
+{
+ return [NSString class];
+}
++ (BOOL)allowsReverseTransformation
+{
+ return NO;
+}
+
- (id)transformedValue:(id)value
{
if(![value isKindOfClass:[NSNumber class]]) return nil;
- HMServerDataStore *store = [HMServerDataStore defaultManager];
+ HMServerDataStore *store = [HMServerDataStore oneTimeEditor];
NSError *error = nil;
NSArray *array = [store objectsWithEntityName:@"MasterSlotItemEquipType"
return nil;
}
- return [array[0] valueForKey:@"name"];
+ return [[array[0] valueForKey:@"name"] copy];
}
@end