I\'ve seen code like:
if (delegate != nil && [delegate respondsToSelector:@selector(doSomething)]) ...
But, sending a message to