Catching double click in Cocoa OSX

Mike2012 picture Mike2012 · Feb 2, 2010 · Viewed 9.3k times · Source

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

Answer

Chuck picture Chuck · Feb 2, 2010

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