• 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
Figuring out which NSView to send an event to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Figuring out which NSView to send an event to
      • From: Ken Thomases <email@hidden>
    • Re: Figuring out which NSView to send an event to
      • From: Graham Cox <email@hidden>
  • Prev by Date: [Moderator] Sandboxing die.die.die
  • Next by Date: Re: NSDocument package saving invalidates wrapper? Options?
  • Previous by thread: [Moderator] Sandboxing die.die.die
  • Next by thread: Re: Figuring out which NSView to send an event to
  • Index(es):
    • Date
    • Thread