Re: Mouse tracking rects
Re: Mouse tracking rects
- Subject: Re: Mouse tracking rects
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 8 Mar 2005 17:19:50 -0700
On Mar 8, 2005, at 4:57 PM, Marcel Narings wrote:
This works perfectly. However when my app starts with the mouse over
the view; I first have to move the mouse out of the view and then back
over.
How do I get mouseMoved events when my app starts up with the mouse
over the view? Where do I place the [ [self window]
setAcceptsMouseMovedEvents:YES] ?
I solved this problem once by overriding -viewDidMoveToWindow, calling
the method to set up the tracking rects in the override, and in the
method that sets up the tracking rects I made it check the current
mouse position and call -mouseEntered: manually if the pointer is
already inside the rect. This works for me...
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden