cocoamacosdouble-clicknsresponder

Catching double click in Cocoa OSX


NSResponder seems to have no mouse double click event. Is there an easy way to catch a double click?


Solution

  • The mouseDown: and mouseUp: methods take an NSEvent object as an argument with information about the clicks, including the clickCount.