Figuring out which NSView to send an event to
Figuring out which NSView to send an event to
- Subject: Figuring out which NSView to send an event to
- From: Akhil Jindal <email@hidden>
- Date: Tue, 04 Sep 2012 16:58:46 +0530
Hi,
I’m trying to use the Wacom’s Feel Multi-Touch API to capture touch events
in my app. I have their cintiq hardware connected to my iMac.
The problem I’m facing is that it gives me an event with the screen
coordinates on which it happened, and I’m left to figure out on my own, as
to which NSView should be processing it.
Using NSWindowList, and iterating over them, I find the window to which the
event should belong. Now I have to find the NSView within the window.
Is there a way to iterate over the view's within a window?
I tried getting the contentView and from that its subviews. But that
returns me an empty array :(
Any pointers?
-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