title: NSButton catch a mouse click event
body: <p>I have the code</p>
  
  <pre><code>#import &lt;Cocoa/Cocoa.h&gt;
  
  
  @interface MyButton : NSButton
  {
  
  }
  
  - (void)mouseDown:(NSEvent *)theEvent;
  
  @end
  
  #import "ContextMenuButton.h"
  
  
  @implementation MyButton
  
  - (void)mouseDown:(NSEvent *)theEvent;
  {
      // ...
  }
  </code></pre>
  
  <p>According to the <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSControl_Class/Reference/Reference.html" rel="nofollow">NSControl Class Reference</a> <code>mouseDown</code> informs the receiver that the user has pressed the left mouse button.</p>
  
  <p>How could I catch right and others mouse button clicks?</p>