Re: Getting a double-click on a text label
Re: Getting a double-click on a text label
- Subject: Re: Getting a double-click on a text label
- From: Ryan Dignard <email@hidden>
- Date: Sun, 17 Apr 2016 18:46:06 -0700
Would NSClickGestureRecognizer work? I've done this on iOS with the
equivalent UITapGestureRecognizer.
On Sun, Apr 17, 2016 at 5:45 PM, Graham Cox <email@hidden> wrote:
> Hi al,
>
> Here’s something I thought would be trivial, turns out to be non-obvious.
>
> I have a text label that’s not normally editable text, but it can be made
> editable in some circumstances. It would be useful if a double-click were a
> shortcut to make it editable, but I can’t see a quick way to set that up,
> other than subclassing NSTextField. I thought NSControl had a
> -setDoubleAction: method, but in checking for that, I can’t see it anywhere
> from NSTextField and NSResponder, so I was probably thinking of NSMatrix.
>
> Is there a way to do this other than subclassing?
>
> —Graham
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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