Re: How does Pixie get the mouse position?
Re: How does Pixie get the mouse position?
- Subject: Re: How does Pixie get the mouse position?
- From: Kyle Moffett <email@hidden>
- Date: Wed, 9 Jun 2004 07:20:50 -0400
On Jun 09, 2004, at 03:08, John MacDonnell wrote:
On 9 Jun 2004, at 12:53 AM, Allan Odgaard wrote:
On 8. Jun 2004, at 22:32, John MacDonnell wrote:
I know I can set a Timer and get the [NSEvent mouseLocation]; but at
school someone taught me that polling must be avoided as often as
possible!
It certainly must, but I am afraid that in this case Apple leave you
no alternative :( Please do file a bug/enhancement report -- this
question has been raised a dozen times, and I can think of some very
useful applications of being able to intercept the mouse, but polling
would be very bad as it would probably drain the battery on
portables... not to mention that for one application I have in mind,
polling would simply not work, since I need *every* single mouse
moved event.
Could you perhaps create a 100% transparent window up at a high level
(screen saver window level?) and use that to track mouse position?
Cheers,
Kyle Moffett
_______________________________________________
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.