• 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: Tablet events from ordinary touchpad?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tablet events from ordinary touchpad?


  • Subject: Re: Tablet events from ordinary touchpad?
  • From: Raleigh Ledet <email@hidden>
  • Date: Mon, 21 Sep 2009 14:20:11 -0700

Tablet proximity events are sent to the first responder of the window the cursor is over. Which is probably not what you want. You have two options:
1) On 10.6, add a local event monitor to catch proximity events directly by the objects that care.
2) Create your own NSApplication subclass and override sendEvent:. When you find a tabletProximity event, wrap it up in your own notification and post that. All objects that care about the proximity should listen for your notification instead of the tabletProximity: responder method.


-raleigh


On Sep 21, 2009, at 1:40 PM, Uli Kusterer wrote:

Am 21.09.2009 um 21:05 schrieb Sander Stoks:
However, I'm still not getting the tabletProximity: event in my NSView. In the Event Tabs Testbench I do see it. Is there anything special I must do to my NSView to receive these tablet- only events?

I don't think there was anything special needed. See if anything in this article from when I last did pressure-sensitivity helps:


http://zathras.de/blog-wacom-pens-stirring-cocoa.htm

For one thing, it has a link to WACOM sample code that may be useful.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://groups.yahoo.com/group/mac-gui-dev/

_______________________________________________

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


References: 
 >Re: Tablet events from ordinary touchpad? (From: Sander Stoks <email@hidden>)
 >Re: Tablet events from ordinary touchpad? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Why am I always getting the linker error: 'duplicate symbol'...?
  • Next by Date: Re: Problem with fontDescriptorWithFontAttributes:
  • Previous by thread: Re: Tablet events from ordinary touchpad?
  • Next by thread: Capturing content programatically
  • Index(es):
    • Date
    • Thread