mouseEntered/-mouseExited not firing on drag (NSTrackingEnabledDuringMouseDrag on)
mouseEntered/-mouseExited not firing on drag (NSTrackingEnabledDuringMouseDrag on)
- Subject: mouseEntered/-mouseExited not firing on drag (NSTrackingEnabledDuringMouseDrag on)
- From: "K. Darcy Otto" <email@hidden>
- Date: Thu, 28 Jan 2010 16:00:55 -0800
I've managed to set up a series of NSTrackingAreas. These tracking
areas work beautifully, highlighting and de-highlighting in turn by
means of -mouseEntered and -mouseExited. The problem I've run into is
that -mouseEntered and -mouseExited do not fire on a drag. Here is
the code I've used to set up the tracking:
NSTrackingArea *trackArea = [[NSTrackingArea alloc] initWithRect:rect
options:(NSTrackingMouseEnteredAndExited |
NSTrackingEnabledDuringMouseDrag | NSTrackingActiveAlways)
owner:self
userInfo:userInfo];
I then add the trackArea to the view. Once set up, -mouseEntered/-
mouseExited fire as expected when the mouse hovers over the tracking
areas. But not during a drag.
It is my understanding that the "NSTrackingEnabledDuringMouseDrag" is
supposed to allow -mouseEntered/-mouseExited to fire during a drag.
Is this not correct? I've also tried adding the NSTrackingMouseMoved
option, and found that -mouseMoved fires, but again not with a drag.
Any ideas? Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden