• 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
Not reliable trackingRect (move the mouse quickly)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • [SOLVED] Not reliable trackingRect (move the mouse quickly)
      • From: Yann Bizeul <email@hidden>
  • Prev by Date: Re: MVC paradigm question
  • Next by Date: Re: MVC paradigm question
  • Previous by thread: Undo Problem: No Dot On Document After Saving...
  • Next by thread: [SOLVED] Not reliable trackingRect (move the mouse quickly)
  • Index(es):
    • Date
    • Thread