Changed signature of willMapData: to allow you to completely replace the mappableData.

This commit is contained in:
Blake Watters
2011-06-28 11:46:03 -04:00
parent 0949337749
commit 851df3bcba
4 changed files with 10 additions and 7 deletions

View File

@@ -132,7 +132,7 @@
if ([self.delegate respondsToSelector:@selector(objectLoader:willMapData:)]) {
parsedData = [[parsedData mutableCopy] autorelease];
[(NSObject<RKObjectLoaderDelegate>*)self.delegate objectLoader:self willMapData:parsedData];
[(NSObject<RKObjectLoaderDelegate>*)self.delegate objectLoader:self willMapData:&parsedData];
}
RKObjectMapper* mapper = [RKObjectMapper mapperWithObject:parsedData mappingProvider:mappingProvider];