Re: Trouble with mouseMoved and custom views
Re: Trouble with mouseMoved and custom views
- Subject: Re: Trouble with mouseMoved and custom views
- From: Ricky Sharp <email@hidden>
- Date: Thu, 23 Dec 2004 15:10:55 -0600
On Dec 23, 2004, at 11:18 AM, Christopher Drum wrote:
In a previous posting I had asked for help with mouseEntered and
mouseExited on a little color palette I was working on. My problem was
the order in which mouseEntered and mouseExited are called changes
depending upon the direction I move the mouse. The suggestion was to
use mouseMoved instead to track the mouse location within my custom
view and highlight color palette swatches using the mouse coordinates.
(Originally I had a tracking rect for each individual color palette
swatch)
Is it possible that your tracking rects overlapped? That may explain
the difference in the order of events if for each two rects, there was
an intersection of a 1-pixel wide strip.
Did you also see the problem when moving the mouse up and down?
When computing the tracking rects, try insetting them a bit as a test
and see if the problem still exists.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.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