Not reliable trackingRect (move the mouse quickly)
Not reliable trackingRect (move the mouse quickly)
- Subject: Not reliable trackingRect (move the mouse quickly)
- From: Yann Bizeul <email@hidden>
- Date: Tue, 25 May 2004 00:22:20 +0200
Hi list.
I have a problem subclassing NSButton to get a rollover effect on it.
I just want to place an alternate icon when the mouse enters the
NSButton view, the dispose of it when the mouse leave.
So I set up trackingRect according to the doc, and do my stuffs in
mouseEntered and mouseExited methods;
That works fine as long as I don't move the mouse too quickly.
If I ferbrily move the mouse between two of my custom NSButtons, some
events are skipped and my button sometimes keep a wrong state.
How can I avoid to ask the window to catch mouseMoved to make this
work fine ? Is there a way to get reliable mouseE* events ?
Thanks !
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.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.