Created
December 22, 2011 08:41
-
-
Save mundstein/1509545 to your computer and use it in GitHub Desktop.
Cool objective-c code spy
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
// Override this method in any class to get a pretty list of | |
// all methods that are being called - very useful. | |
// Try it on the AppDelegate for example | |
-(BOOL)respondsToSelector:(SEL)aSelector { | |
printf("The spy says: %s\n", [NSStringFromSelector(aSelector) UTF8String]); | |
return [super respondsToSelector:(aSelector)]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment