diff --git a/BWObjectMapping/BWObjectValueMapper.m b/BWObjectMapping/BWObjectValueMapper.m index 4bf8730..2dc0aba 100755 --- a/BWObjectMapping/BWObjectValueMapper.m +++ b/BWObjectMapping/BWObjectValueMapper.m @@ -77,10 +77,12 @@ - (void)setValue:(id)value withValueBlock:attributeMapping.valueBlock fromObject:object]; } - + +#ifdef _COREDATADEFINES_H if ([object isKindOfClass:NSClassFromString(@"NSManagedObject")]) { transformedValue = [self transformValue:transformedValue forKeyPath:keyPath withCoreDataObject:object]; } +#endif if ([transformedValue isKindOfClass:[NSArray class]]) { transformedValue = [self transformArrayValue:transformedValue forKeyPath:keyPath withObject:object]; @@ -113,7 +115,7 @@ - (id)transformArrayValue:(id)value forKeyPath:(NSString *)keyPath withObject:(i return nil; } - +#ifdef _COREDATADEFINES_H //////////////////////////////////////////////////////////////////////////////////////////////////// - (id)transformValue:(id)value forKeyPath:(NSString *)keyPath withCoreDataObject:(NSManagedObject *)object { if (nil == value) { @@ -178,7 +180,7 @@ - (id)transformValue:(id)value forKeyPath:(NSString *)keyPath withCoreDataObject return transformedValue; } - +#endif //////////////////////////////////////////////////////////////////////////////////////////////////// - (id)transformValue:(id)value withValueBlock:(BWObjectMappingValueBlock)valueBlock fromObject:(id)object {