Is it possible to call actions only on mouseup ( mouserelease) in Cocoa?

194 Views Asked by At

I have a NSButton and an action associated with Button. I would like to invoke the action method only on mouseup (mouserelease).Is it possible? If it is possible how to do that?

1

There are 1 best solutions below

1
On BEST ANSWER

A click is a mouseDown followed by a mouseUp, so a normal action method is not called until the mouseUp anyway, so I don't know what other behavior you would want.