Docs update. Eliminate mappingOperationFromObject:

This commit is contained in:
Blake Watters
2012-09-20 19:11:38 -04:00
parent bd4130a546
commit 7e816904ff
6 changed files with 65 additions and 90 deletions

View File

@@ -79,7 +79,7 @@
{
RKObjectMappingOperationDataSource *dataSource = [RKObjectMappingOperationDataSource new];
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
RKMappingOperation *operation = [RKMappingOperation mappingOperationFromObject:self.object toObject:dictionary withMapping:self.mapping];
RKMappingOperation *operation = [[RKMappingOperation alloc] initWithSourceObject:self.object destinationObject:dictionary mapping:self.mapping];
operation.dataSource = dataSource;
operation.delegate = self;
BOOL success = [operation performMapping:error];