NSWindows have a variety of function to handle mouse events (i.e. void mouseDown for a left click, void mouseDragged for drags etc.). What function is used to handle double clicks?
NSWindows have a variety of function to handle mouse events (i.e. void mouseDown for
Share
NSWindowis a subclass ofNSResponderand inherits its methods.Each event handling method,
-(void)mouseDown:(NSEvent *)theEvent;is one of them, takes an parameter; the event object.To find out how many clicks have been recorded, query the event object.
From
NSEventdocumentation, here is the method that returns such information :