title: Set Button selector (on click event) at runtime ? (Cocoa : Mac Project)
body: <p>Any idea how to set button selector at runtime (on click event) for mac (Not IOS)</p>
  
  <p>I have a view controller with a button declared as outlet :</p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  
  @interface MyView : NSView
  @property (assign) IBOutlet NSButton *MyBtn;
  </code></pre>
  
  <p>i can access that buton with something like this :</p>
  
  <pre><code>MyView * v;
  .
  .
  .
  [v MyBtn]
  </code></pre>
  
  <p>i didn't find "addTarget" choice like on cocoa touch.
  The only choice is "setTarget(id)"</p>
  
  <p>I'm using Xcode 4.4.1 for osx mountain lion</p>
  
  <p>any suggestion would be appreciated. thanks</p>