Ah, I just found out, you can create a mapping for the NSNull class. That seems to work. Here's the code:
{
RKObjectMapping* responseMapping = [RKObjectMapping mappingForClass:[NSNull class]];
RKResponseDescriptor* response =
[RKResponseDescriptor responseDescriptorWithMapping:responseMapping
method:RKRequestMethodAny
pathPattern:@"entry/sync"
keyPath:nil
statusCodes:RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)];
[restObjectManager addResponseDescriptor:response];
}
Please tell me if this is the right way.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…