title: Dynamically invoke a class method in Objective C
body: <p>Suppose I have Objective C interface <code>SomeClass</code> which has a class method called <code>someMethod</code>:   </p>
  
  <pre><code>@interface SomeClass : NSObject {
  }
  
  + (id)someMethod;
  @end
  </code></pre>
  
  <p>In some other interface I want to have a helper method that would dynamically invoke <code>someMethod</code> on a class like this:</p>
  
  <pre><code>[someOtherObject invokeSelector:@selector(someMethod) forClass:[SomeClass class];
  </code></pre>
  
  <p>What should be the implementation for <code>invokeSelector</code>? Is it possible at all?</p>
  
  <pre><code>- (void)invokeSelector:(SEL)aSelector forClass:(Class)aClass {
     // ???
  }
  </code></pre>