Skip to content

Instantly share code, notes, and snippets.

@mundstein
Created December 22, 2011 08:41
Show Gist options
  • Save mundstein/1509545 to your computer and use it in GitHub Desktop.
Save mundstein/1509545 to your computer and use it in GitHub Desktop.
Cool objective-c code spy
// 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