Re: receiving mouse events outside of my window
Re: receiving mouse events outside of my window
- Subject: Re: receiving mouse events outside of my window
- From: Anthony Arthur <email@hidden>
- Date: Fri, 24 May 2002 12:00:09 -0400
Ok, well if Thomas is just tracking the mouse that's one thing, but if
he wants multiple applications to respond to the same mouse clicks
that's another. Perhaps there's something Thomas is doing that makes
this seem more sensible, but I'm would not be persuaded easily.
Meanwhile, I'm really not interested in turning this into a religious
type debate.
-b
On Friday, May 24, 2002, at 11:13 AM, David Remahl wrote:
While I agree in principle with what you are saying, I think you are
being
too narrow-minded. You don't know what the person who asked the
question is
trying to do. Maybe he/she is just trying to record the path that the
mouse
pointer travells, even when his/her app is in the background, or some
other
legitimate application. I have seen no indication, not in the original
question or in Rick's answer, that any passing of events is going to
happen.
They are just talking about how to know when/where the mouse has moved,
when
the application is in the background or the mouse is outside of any
window
owned by the application.
Breaking the paradigm is sometimes the best, or only, think to do.
/ Rgds, David
Passing mouse events, or any event for that matter, between completely
separate applications, while it may be possible to do, is definitely
NOT
the right thing to do. Just because it is possible to do something,
does not necessarily mean it is the correct way. Mouse events and
keyboard events belong to the key application, otherwise the window
server would pass every event to every running application. To do
otherwise breaks the paradigm.
I would suggest using distributed object, NSProxy & NSConnection.
-b
On Friday, May 24, 2002, at 10:26 AM, rsharp wrote:
I can only provide comments about this from a Carbon perspective.
Receiving mouse events outside ones window is definitely something
valid
to do. e.g. it's common to listen to mouse moved events outside the
window. This is typically accomplished by have a "mouse event
handler"
at
the application level.
What type of mouse events are you interested in?
Rick Sharp
Instant Interactive(tm)
On Fri, 24 May 2002, Anthony Arthur wrote:
Not really..., think about it, if someone tapped you on the shoulder,
would you want to also feel it in your eyeball? Doesn't make much
sense
does it? You can achieve the same effect programmatically.
--Brian
On Friday, May 24, 2002, at 01:47 AM, email@hidden wrote:
Is it possible to receive mouse events that did not occur in the
window
that owns the run loop? Or even in a window in another application?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.