Would NSClickGestureRecognizer work? I've done this on iOS with the equivalent UITapGestureRecognizer.
On Sun, Apr 17, 2016 at 5:45 PM, Graham Cox <graham....@bigpond.com> 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 (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/conceptuallyflawed%40gmail.com > > This email sent to conceptuallyfla...@gmail.com _______________________________________________ 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