no message
This commit is contained in:
parent
2e2ed83e95
commit
79b96fc967
@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "PNObject"
|
||||
s.version = "0.6.0"
|
||||
s.version = "0.6.1"
|
||||
s.summary = "PNObject is a simple replica of the more complex ParseObject"
|
||||
|
||||
# This description is used to generate tags and improve search results.
|
||||
|
||||
@ -52,8 +52,8 @@
|
||||
}
|
||||
|
||||
/*if (fromLocal) {
|
||||
propertyName = mappedJSONKey;
|
||||
}*/
|
||||
propertyName = mappedJSONKey;
|
||||
}*/
|
||||
|
||||
if ([[PNObject protectedProperties] containsObject:propertyName] || [self isObjNull:mappedJSONKey]) {
|
||||
continue;
|
||||
@ -128,8 +128,13 @@
|
||||
@"NSArray" : ^{
|
||||
NSMutableArray *arr = [NSMutableArray array];
|
||||
for(id JSONObject in value) {
|
||||
PNObject *val = [[NSClassFromString(mappedJSONType) alloc] initWithJSON:JSONObject fromLocal:fromLocal];
|
||||
[arr addObject:val];
|
||||
if([[JSONObject class] isSubclassOfClass:[PNObject class]]) {
|
||||
PNObject *val = [[NSClassFromString(mappedJSONType) alloc] initWithJSON:JSONObject fromLocal:fromLocal];
|
||||
[arr addObject:val];
|
||||
}
|
||||
else {
|
||||
[arr addObject:JSONObject];
|
||||
}
|
||||
}
|
||||
|
||||
[self setValue:arr forKey:propertyName];
|
||||
@ -137,8 +142,13 @@
|
||||
@"NSMutableArray" : ^{
|
||||
NSMutableArray *arr = [NSMutableArray array];
|
||||
for(id JSONObject in value) {
|
||||
PNObject *val = [[NSClassFromString(mappedJSONType) alloc] initWithJSON:JSONObject fromLocal:fromLocal];
|
||||
[arr addObject:val];
|
||||
if([[JSONObject class] isSubclassOfClass:[PNObject class]]) {
|
||||
PNObject *val = [[NSClassFromString(mappedJSONType) alloc] initWithJSON:JSONObject fromLocal:fromLocal];
|
||||
[arr addObject:val];
|
||||
}
|
||||
else {
|
||||
[arr addObject:JSONObject];
|
||||
}
|
||||
}
|
||||
|
||||
[self setValue:arr forKey:propertyName];
|
||||
@ -276,7 +286,7 @@
|
||||
mappedValues = [formMappingValue valueForKey:@"values"];
|
||||
}
|
||||
else {
|
||||
mappedKey = formMappingKey;
|
||||
mappedKey = formMappingKey;
|
||||
}
|
||||
|
||||
((void (^)())@{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user