RestKit loadObjects
- by Peter Lapisu
iam using restKit, to send and receive data from server... iam getting back
{
"request":"globalUpdate",
"updateRevision":2,
"updatedObjects":{
"users":[
{
id:"someid1",
name:"somename"
},
{
id:"someid2",
name:"somename2",
}
]
}
}
i want to use
[[RKObjectManager sharedManager] loadObjectsAtResourcePath:nil usingBlock:^(RKObjectLoader * loader){)];
to load only objects inside updatedObjects into CoreData and request, updateRevision into NSDictionary
so in
loader.onDidLoadObjects = ^(NSArray *objects) {
}
the first object is the Dictionary and the later one are CoreData