Re: Dispatch NSEvent to everyone
Re: Dispatch NSEvent to everyone
- Subject: Re: Dispatch NSEvent to everyone
- From: glenn andreas <email@hidden>
- Date: Fri, 18 Jul 2008 13:22:58 -0500
On Jul 18, 2008, at 1:15 PM, Matthew Williamson wrote:
Ok, looking more at the Quartz event tap stuff, there's more there
than I thought--tablet stuff is there, for instance. But really, I
still have the same problem, because I don't want to use the Carbon
APIs (if I want my app to be 64-bit, I can't use any Carbon anyway,
right?).
I just thought that there had to be a way to do this in Cocoa...but
everything I've seen seems to point back to using the Carbon APIs.
My basic question is still this: Can I pass an NSEvent to some top-
level responder that will pass it on to the appropriate application
(based on window locations, etc.), or to Dashboard, or Expose, or
whatever needs to handle the recieved event?
No. NSEvent includes references to things that exist only within your
own address space.
You'll need to drop to a lower layer to work with "raw" events without
any sort of application specific context associated with them (which
pretty much limits you to doing what the user does - the mouse moves,
keys are pressed and released, etc...)
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next
generation of fractal art
_______________________________________________
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