• 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: magic trackpad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: magic trackpad


  • Subject: Re: magic trackpad
  • From: Raleigh Ledet <email@hidden>
  • Date: Mon, 25 Apr 2011 10:17:09 -0700

The view does not need to be key. It only needs to be in the key/main window and the mouse cursor needs to be over the view.

I don't know why you are worried about mouse events. If you are performing a gesture, then you will not get ouse events and the cursor will not move until you complete the gesture. It sounds like you aren't actually performing any known gestures. (Actually it sounds like you are trying to do a 1 finger gesture a'la iOS.) Are you trying to perform the gestures in the manner explained in the system preference pane?

-raleigh

On Apr 25, 2011, at 9:54 AM, Charlie Dickman wrote:

> Raleigh,
>
> I actually don't want touches but since I wasn't getting anything I put them in; I'll drop them.
>
> I understand I can't get gestures in the background - I'm not trying to.
>
> I will check to be sure that the view is key - thanks.
>
> I'm still confused about the mouse cursor responding to finger gestures. It seems that a gesture would easily carry the mouse cursor out of the targeted view. Or are you referring to the text cursor? I have no text cursor in my targeted view.
>
> I also don't understand why Safari does not respond to gestures.
>
>
> On Apr 25, 2011, at 12:46 PM, Raleigh Ledet wrote:
>
>> 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
>>>
>>>
>>>
>>
>
> 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

References: 
 >magic trackpad (From: Charlie Dickman <email@hidden>)
 >Re: magic trackpad (From: Raleigh Ledet <email@hidden>)

  • Prev by Date: Re: magic trackpad
  • Next by Date: What is loaded when a static library is linked? (was: Xcode 4 auto-importing Objective C categories from static library)
  • Previous by thread: Re: magic trackpad
  • Next by thread: NSOpenPanel
  • Index(es):
    • Date
    • Thread