no message

This commit is contained in:
Giuseppe Nucifora 2016-02-17 17:30:36 +01:00
parent 9e63928c8b
commit bcbcac36d2

View File

@ -113,6 +113,19 @@ NSString * const PNObjectMappingSelector = @"selector";
continue;
}
[self addObserver:self forKeyPath:propertyName options:NSKeyValueObservingOptionNew context:nil];
NSString *propertyType = [properties valueForKey:propertyName];
((void (^)())@{
@"NSMutableArray" : ^{
NSMutableArray *arr = [[NSMutableArray alloc] init];
[self setValue:arr forKey:propertyName];
}
}[propertyType] ?: ^{
})();
}
}
return self;
@ -158,6 +171,19 @@ NSString * const PNObjectMappingSelector = @"selector";
continue;
}
[self addObserver:self forKeyPath:propertyName options:NSKeyValueObservingOptionNew context:nil];
NSString *propertyType = [properties valueForKey:propertyName];
((void (^)())@{
@"NSMutableArray" : ^{
NSMutableArray *arr = [[NSMutableArray alloc] init];
[self setValue:arr forKey:propertyName];
}
}[propertyType] ?: ^{
})();
}
NSAssert(self.JSONObjectMap, @"You must create objectMapping");