Re: Abstracting a group of commonly named Selectors


Jeff Laing
 

On review, one thing. Don't do this:

if ( [self respondsToSelector:sel] == NO )

It's a boolean method, never use an equality check for "true" or "false" on a boolean method, even if it seems to work, it sets you up for pain when you switch languages.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.