• 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: Handling "Smart Zoom" gesture?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling "Smart Zoom" gesture?


  • Subject: Re: Handling "Smart Zoom" gesture?
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 28 Jun 2012 00:31:00 -0700

On Jun 28, 2012, at 00:14 , Graham Cox wrote:

> Specifically, the problem is that the -clickCount property of an NSEvent is only applicable to mouse events, not touch events. So what's the right way to trap this specific gesture? I have read the various touch-input documentation but nothing became obvious.

The 10.6 document seems to imply that tapping isn't a gesture, so I'd assume you'd have to implement the NSResponder methods 'touches…WithEvent:' and use the event times to decide (a) if precisely 2 touches begin/end more or less simultaneously and (b) if a second 2-touch tap begins within a time interval after the 1st one [iOS defaults to 0.5 sec for this interval. Perhaps on the Mac you'd use something conditioned by the double-click time instead. I dunno.] and (c) if both 2-touch taps last less than some time interval [otherwise they'd represent a long press].

Something like that?


_______________________________________________

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: Handling "Smart Zoom" gesture?
      • From: Graham Cox <email@hidden>
References: 
 >Handling "Smart Zoom" gesture? (From: Graham Cox <email@hidden>)
 >Re: Handling "Smart Zoom" gesture? (From: "Richard Altenburg (Brainchild)" <email@hidden>)
 >Re: Handling "Smart Zoom" gesture? (From: Graham Cox <email@hidden>)
 >Re: Handling "Smart Zoom" gesture? (From: "Richard Altenburg (Brainchild)" <email@hidden>)
 >Re: Handling "Smart Zoom" gesture? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Handling "Smart Zoom" gesture?
  • Next by Date: nstableview remove/insert rows question
  • Previous by thread: Re: Handling "Smart Zoom" gesture?
  • Next by thread: Re: Handling "Smart Zoom" gesture?
  • Index(es):
    • Date
    • Thread