> On Dec 6, 2015, at 2:56 PM, Graham Cox <graham....@bigpond.com> wrote: > > >> On 7 Dec 2015, at 2:45 AM, Dave <d...@looktowindward.com> wrote: >> >> On the Mac what is the best control to use to do this? > > > Just override -mouseDown: in the view and call [NSApp > sendAction:toTarget:from:] >
I’d recommend looking at NSClickGestureRecognizer. You can set its target/action directly just like a button and it should be significantly easier than working out click timings, etc. -Conrad _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com