You're looking for the Protocol
object:
BOOL conforms(id object, Protocol *protocol, SEL action) {
return (object != nil &&
[object conformsToProtocol:protocol] &&
[object respondsToSelector:action]);
}
Jacob Relkin
2010-09-03 02:03:45