RestKit loadObjects

Posted by Peter Lapisu on Stack Overflow See other posts from Stack Overflow or by Peter Lapisu
Published on 2012-11-21T12:20:19Z Indexed on 2012/11/21 23:00 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c