I have some coding practices involving delegates that I'm not sure of. First of all, if a delegate protocol has no optional methods (all required), is it a recommended practice to use respondsToSelector:
to check whether the delegate object implements that method? And second, do I need to check whether the delegate isn't nil
before calling a method on it? In my brief experiments, calling a method on a nil
object doesn't do anything, but what is the recommended practice here?
Thanks