Re: Abstracting a group of commonly named Selectors


Sandor Szatmari
 

Jeff,

On Jul 22, 2020, at 17:48, Jeff Laing <jefflaing@...> wrote:



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.

Switch languages!!! Noooo…

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