• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mouseEntered/-mouseExited not firing on drag (NSTrackingEnabledDuringMouseDrag on)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: mouseEntered/-mouseExited not firing on drag (NSTrackingEnabledDuringMouseDrag on)
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: NSXML and invalid UTF8 characters
  • Next by Date: Re: NSXML and invalid UTF8 characters
  • Previous by thread: Re: NSXML and invalid UTF8 characters
  • Next by thread: Re: mouseEntered/-mouseExited not firing on drag (NSTrackingEnabledDuringMouseDrag on)
  • Index(es):
    • Date
    • Thread