I want to trigger a button on left mouse down in my mac osx app using swift.
This is the way to do it in Objective-C
[myButton sendActionOn:NSLeftMouseDownMask];
I can't figure out how to do it in Swift. Can anybody help me out with my problem?
Thanks!