Re: Rollover Effect
Re: Rollover Effect
- Subject: Re: Rollover Effect
- From: email@hidden
- Date: Mon, 29 Aug 2005 18:33:20 -0400
On Aug 29, 2005, at 6:00 AM, Philip Dow wrote:
This works, except that the tracking rectangles are flaky as hell.
The mouseEntered: seems to register every time, but the
mouseExited: misses a beat if I move the cursor too quickly over
the view. The effect is a button that hangs. It continues to
indicate the hover/rollover state after the mouse has passed
through it.
You might want to try overriding the mouseMoved: event as well as a
second checkpoint. I also found tracking rectangles pretty flaky,
and instead set up something using [event locationInWindow] and then
NSView's mouse:inRect: method. The only thing you have to be careful
about there is converting the coordinates of the NSRect to the
NSPoint's coordinate system, or vice versa.
Cameron
_______________________________________________
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