mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Implementation of Object Mapping 2.0 design:
* Removed RestKit from inheritance hierarchy * Mappings are implemented as concrete classes * Mapper is much more flexible & powerful * Much more robust error handling * Serialization is reimplemented as an object mapping operation * Added ability to serialize to JSON natively * Reworked Core Data integration * Simplified the codebase substantially
This commit is contained in:
@@ -43,6 +43,7 @@ NSString* RKMakePathWithObject(NSString* path, id object) {
|
||||
}
|
||||
if ([scanner scanUpToString:@")" intoString:&keyPath]) {
|
||||
NSString* searchString = [NSString stringWithFormat:@"(%@)", keyPath];
|
||||
// TODO: Add warning when the value generated a nil? Only for paths values (i.e. contaning '.')?
|
||||
NSString* propertyStringValue = [NSString stringWithFormat:@"%@", [object valueForKeyPath:keyPath]];
|
||||
[substitutions setObject:propertyStringValue forKey:searchString];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user