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

Ron Garret ron at awun.net
Sun Jun 7 11:11:25 PDT 2009


Ah.  Got it.  Thanks!

rg

On Jun 7, 2009, at 2:22 AM, Gary Byers wrote:

>
>
> See
> <http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/MouseTrackingEvents/MouseTrackingEvents.html 
> >.
> 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