• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting a double-click on a text label
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting a double-click on a text label
      • From: Graham Cox <email@hidden>
References: 
 >Getting a double-click on a text label (From: Graham Cox <email@hidden>)

  • Prev by Date: Getting a double-click on a text label
  • Next by Date: Using protocol extension to dismiss keyboard on outside tap
  • Previous by thread: Getting a double-click on a text label
  • Next by thread: Re: Getting a double-click on a text label
  • Index(es):
    • Date
    • Thread