Re: Getting Mouse Moved Events
Re: Getting Mouse Moved Events
- Subject: Re: Getting Mouse Moved Events
- From: Michael Latta <email@hidden>
- Date: Sat, 28 Dec 2002 15:18:01 -0800
Bruce,
While it may be there, it is not easy to find. I spend days searching
the docs. The setAcceptsMouseMovedEvents I located in 5 minutes.
Nowhere in the docs for NSView, NSWindow, in the overview for handling
mouse events in views, or the other 10 hits in the searches was the
need for first responder mentioned. Now that I know what to look for I
am sure I could find it. And, had I read the docs cover to cover I am
sure I would have seen it, from your comments. But, like most people I
have not read all the docs, and have to rely on searches. As noted in
the original post I worked for years on NeXTStep and have mostly been
able to leverage that in this environment.
Mostly I am annoied that the requirement to be first responder exists
at all. Having to notify the window that you want these events makes
sense from an efficiency point of view, but often (in my cases anyway)
I want to track the mouse moved to do highlighting in places where I am
NOT the first responder.
If you were not trying to chastise me, I apologize for the similar tone
in the above.
Michael
On Saturday, December 28, 2002, at 01:57 PM, Bruce Veazie wrote:
Actually, the whole mouse event thing is well-documented, including
the first responder requirements and accepting mousemoved events.
Look in your Cocoa docs under Basic Event Handling.
From: Michael Latta <email@hidden>
Matthew,
Thanks for the pointer on needing to be first responder. This is no
where in the documentation!!
This also REALLY REALLY REALLY sucks!! I wanted to track the mouse
even when not the active application to do some highlighting. I guess
I will need to try tracking regions/rectangles. If you know of
restrictions on that that are not document please let me know to
reduce
the blood on the brick wall (from my head).
Michael
Bruce J. Veazie
email@hidden
http://veazie.org
_______________________________________________
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.