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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to