I have the code
#import <Cocoa/Cocoa.h>
@interface MyButton : NSButton
{
}
- (void)mouseDown:(NSEvent *)theEvent;
@end
#import "ContextMenuButton.h"
@implementation MyButton
- (void)mouseDown:(NSEvent *)theEvent;
{
// ...
}
According to the NSControl Class Reference mouseDown informs the receiver that the user has pressed the left mouse button.
How could I catch right and others mouse button clicks?