mouseEntered???? do you also have a tracking area setup? When are you calling 
setAcceptsTouchEvent:? FYI, You won't get touch events unless the cursor is 
over your view when the first touch occurs. While dragging the cursor, the 
touch doing that was latched to some other view. All touches are latched to 
that other view until the user removes all touches and starts over.

-raleigh


On Jul 27, 2012, at 5:25 AM, Akhil Jindal <akhi...@gmail.com> wrote:

> 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 (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/ledet%40apple.com
> 
> This email sent to le...@apple.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

Reply via email to