[Openmcl-devel] mouse-enter and mouse-leave events

Gary Byers gb at clozure.com
Sun Jun 7 02:22:19 PDT 2009

The short version is that mouse-tracking events are generated when the
mouse enters or leaves a "tracking area" (10.5) or "tracking rect"
(earlier systems) which requires some work to set up and possibly some
work to maintain but potentially offers greater flexibility than
"mouse entered/left view" would.

On Sun, 7 Jun 2009, Ron Garret wrote:

> I'm trying to port the draggable demo to CCL and have it mostly working, 
> except that my subviews don't seem to be getting mouse-enter and mouse-leave 
> events.  I know that I have to explicitly enable mouse-move events, but is 
> there something analogous I have to do to get enter and leave events?  I 
> haven't been able to find anything indicating that in the Cocoa docs, and yet 
> it doesn't seem to work despite the fact that the handler interface code is 
> pretty much identical.
> Code attached.
> Thanks,
> rg

More information about the Openmcl-devel mailing list