How can I name a selector with its name in NSString * in object c? I also need to call the selector only if the target accepts it. eg.
+(void) callMethod: (NSString *) method onObject: (id) object {
When I call callMethod: @"Foo" onObject: obj , if obj implements Foo , then [obj Foo] should be called, if it does not implement it, nothing should happen.
source share