I wrote a debug macro that prints to the console the passed-in string whenever the global kDebug flag == YES.
kDebug
YES
I need to print out the name
I ended up with this code, after asking a similar question here How can I log names of each called class method in Objective-C?
- (BOOL)respondsToSelector:(SEL)aSelector { if(aSelector){ NSLog(@"%@", NSStringFromSelector(aSelector)); } return [super respondsToSelector:aSelector]; }