Invoke self instead of self.delegate in thread safe invocation from managed object loader. refs #655

This commit is contained in:
Blake Watters
2012-04-10 11:33:36 -04:00
parent ac05b6d256
commit b27be1cbc5

View File

@@ -167,7 +167,7 @@
RKLogError(@"Failed to save managed object context after mapping completed: %@", [error localizedDescription]);
NSMethodSignature* signature = [(NSObject *)self methodSignatureForSelector:@selector(informDelegateOfError:)];
RKManagedObjectThreadSafeInvocation* invocation = [RKManagedObjectThreadSafeInvocation invocationWithMethodSignature:signature];
[invocation setTarget:self.delegate];
[invocation setTarget:self];
[invocation setSelector:@selector(informDelegateOfError:)];
[invocation setArgument:&error atIndex:2];
[invocation invokeOnMainThread];