title: Pass a @selector between classes, calling the method from an instanced Object
body: <p>I have a viewController with a method: doSomething:. I have a class Menu that sets up a menu with a button, on which I have "added a target" so I can call a selector from the button. This subclass is instanced from the viewController. </p>
  
  <p>When I tap the instanced menu's button I would like to call the method in the viewController. The obvious way to set this up would be to add an observer to NSNotifications, but seems kind of klunky. Can I somehow pass the selector from the view controller to the instance like so:</p>
  
  <p>in Menu.h</p>
  
  <pre><code>-(void)setupMenuWithAction:(SEL)action {
  </code></pre>
  
  <p>called from the ViewController:</p>
  
  <pre><code>[menu setupMenuWithAction:@selector(doSomething:)];
  </code></pre>
  
  <p>Tried it and it does not work, gives unrecognized selector error when the button is tapped, but I'm wondering if it is a valid concept, and if so how can I fix it.</p>