• 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: receiving mouse events outside of my window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 11:03:53 -0400

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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: receiving mouse events outside of my window
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: Very long floating point numbers
  • Next by Date: Re: receiving mouse events outside of my window
  • Previous by thread: Re: receiving mouse events outside of my window
  • Next by thread: Re: receiving mouse events outside of my window
  • Index(es):
    • Date
    • Thread