Re: magic trackpad
Re: magic trackpad
- Subject: Re: magic trackpad
- From: Raleigh Ledet <email@hidden>
- Date: Mon, 25 Apr 2011 09:46:17 -0700
Charlie,
You have to explicitly opt into touches, but not the other gestures. Though, I wouldn't opt into touches unless you really really need to go that route.
The other gestures are targeted gestures. They are sent to the the view under the cursor and then follow the responder chain from there. Also, the view needs to be in a main or key window. You can't get gestures while in the background.
-raleigh
On Apr 25, 2011, at 9:42 AM, Charlie Dickman wrote:
> Raleigh,
>
> I have all gestures enabled in trackpad prefs. and I am trying, at this point, to respond to everything using
>
>
> - (void) beginGestureWithEvent: (NSEvent *) beginGestureEvent;
> - (void) endGestureWithEvent: (NSEvent *) endGestureEvent;
> - (void) magnifyWithEvent: (NSEvent *) magnifyEvent;
> - (void) rotateWithEvent: (NSEvent *) rotateEvent;
> - (void) swipeWithEvent: (NSEvent *) swipeEvent;
> - (void) touchesBeganWithEvent: (NSEvent *) touchesBeganEvent;
> - (void) touchesMovedWithEvent: (NSEvent *) touchesMovedEvent;
> - (void) touchesCancelledWithEvent: (NSEvent *) touchesCancelledEvent;
> - (void) touchesEndedWithEvent: (NSEvent *) touchesEndedEvent;
>
> Thanks for your interest
>
> On Apr 25, 2011, at 12:20 PM, Raleigh Ledet wrote:
>
>> Charlie,
>>
>> First off, which gestures do you have enabled in your trackpad prefs?
>> Second, which gestures are your trying to respond to? Swipe, Magnify, Rotate, All of the above? Or are you trying to track each touch manually yourself?
>>
>> -raleigh
>>
>> On Apr 22, 2011, at 3:42 PM, Charlie Dickman wrote:
>>
>>> I have instrumented a view in my application to respond to trackpad gestures. I am programming on a Mac Pro using a magic trackpad for gestures. The program gets no messages from gestures made on the trackpad. The mouse responds to trackpad finger moves and trackpad clicks.
>>>
>>> Is there a way to separate the trackpad messages from the mouse messages? Do mouse events have an attribute that distinguishes the trackpad from the mouse? What am I missing or can the trackpad only emulate the mouse?
>>>
>>> Charlie Dickman
>>> 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
>>
>
> Charlie Dickman
> 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