title: check dynamic if a class responds to a selector by respondsToSelector:
body: <p>I am looking for a possibility to check in a dynamic way if a class responds to a selector.</p>
  
  <p>For example I have a strict schema of method names in a class like "parse[CountryCode]Adress".</p>
  
  <p>I tryed something like this:</p>
  
  <pre><code>SEL selector = NSSelectorFromString([NSString stringWithFormat:@"parse%@Address", @"DE"]);
  
  if ([CountryTraderDataParser respondsToSelector:@selector(selector)]) {
      NSLog(@"responds to");
      [CountryTraderDataParser selector];
  }
  </code></pre>
  
  <p>but this doesn't work.</p>
  
  <p>With a hard coded line <code>[CountryTraderDataParser respondsToSelector:@selector(parseDEAddress:)]</code> this example works fine.</p>
  
  <p>Is there an other/better way to get this example to work? </p>