1 //---------------------------------------------------------------------------------------
3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
4 //---------------------------------------------------------------------------------------
6 #import "NSMethodSignature+OCMAdditions.h"
7 #import "OCMIndirectReturnValueProvider.h"
10 @implementation OCMIndirectReturnValueProvider
12 - (id)initWithProvider:(id)aProvider andSelector:(SEL)aSelector
15 provider = [aProvider retain];
26 - (void)handleInvocation:(NSInvocation *)anInvocation
28 [anInvocation setTarget:provider];
29 [anInvocation setSelector:selector];
30 [anInvocation invoke];