| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Saturday, December 28, 2002, at 11:20 AM, Michael Latta wrote:_______________________________________________
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.
I agree - and have run into the same problems. If you hit on a solution please let me know. I dont think tracking rectangles are the answer. There are things you might want to track that arent rectangular. Also there was some posts on this list recently that having large amounts of tracking rectangles (look up "Tooltips - what a pathetic joke..." on http://cocoa.mamasam.com/) greatly slowed down scrolling.
Of course you could have a repeating task for each view that gets the current mouse location and does its own tracking. But that doesnt seem very friendly.
The problem with using mouseMoved events in this way - is that they fire even if the mouse movement took place outside the view. So if you had many views - all receiving mouseMoved events - it could overwhelm the event queue. Id like a MouseMovedInView event that only went to the one view the mouse moved in - even if that view isnt the first responder.
cheers,
M@
_______________________________________________
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.
| References: | |
| >Re: Getting Mouse Moved Events (From: Matthew <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.