• 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: Trying to capture raw touch events on the trackpad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to capture raw touch events on the trackpad


  • Subject: Re: Trying to capture raw touch events on the trackpad
  • From: Zongyao Qu <email@hidden>
  • Date: Tue, 31 Jul 2012 12:57:36 +0900

is mView an iboutlet member?
and where [mView setAcceptsTouchEvents:YES] get called? awakeFromNib or init?

Best Regards,
Zongyao QU


2012/7/27 Akhil Jindal <email@hidden>:
> Hi all,
>
> I'm trying to capture raw touch events on the trackpad to define my own
> gesture events. I've gone through the documentation here:
> http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/EventOverview/HandlingTouchEvents/HandlingTouchEvents.html
>
> I've set [mView setAcceptsTouchEvents:YES] and implemented the following
> functions:
>
>
> - (void)touchesBeganWithEvent:(NSEvent *)event;
>
> - (void)touchesMovedWithEvent:(NSEvent *)event;
>
>
> - (void)touchesEndedWithEvent:(NSEvent *)event;
>
> - (void)touchesCancelledWithEvent:(NSEvent *)event;
>
>
> but *I'm just not getting any calls in any of the above functions*. I keep
> getting calls in mouseMoved, mouseEntered, but not any touch messages.
>
> Am I missing something?
>
> Kindly help.
>
> Regards,
> Akhil Jindal
> _______________________________________________
>
> 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

  • Prev by Date: NSTask: auxiliary executable does not see its data file
  • Next by Date: reading preferences from com.apple.mail under 10.8
  • Previous by thread: Re: NSTask: auxiliary executable does not see its data file
  • Next by thread: Re: Trying to capture raw touch events on the trackpad
  • Index(es):
    • Date
    • Thread