Re: How to
Re: How to
- Subject: Re: How to
- From: Conrad Shultz <email@hidden>
- Date: Wed, 09 Dec 2015 22:54:50 -0800
> On Dec 6, 2015, at 2:56 PM, Graham Cox <email@hidden> wrote:
>
>
>> On 7 Dec 2015, at 2:45 AM, Dave <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden
References: | |
| >How to (From: Dave <email@hidden>) |
| >Re: How to (From: Graham Cox <email@hidden>) |