Created
April 9, 2010 06:17
-
-
Save natemartinsf/360932 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)forwardInvocation:(CPInvocation)anInvocation | |
{ | |
CPLog(@"Forwarding invocation from %@ to %@", self, _realObject); | |
var aSelector = [anInvocation selector]; | |
if ([_realObject respondsToSelector:aSelector]) | |
{ | |
[anInvocation invokeWithTarget:_realObject]; | |
CPLog(@"finished invocation"); | |
CPLog(@"Return value is: %@", [anInvocation returnValue]); | |
return [anInvocation returnValue]; | |
} | |
else | |
{ | |
[self doesNotRecognizeSelector:aSelector]; | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment