Re: No mouseExited when switching windows
Re: No mouseExited when switching windows
- Subject: Re: No mouseExited when switching windows
- From: Kyle Sluder <email@hidden>
- Date: Mon, 18 Feb 2013 22:03:35 -0800
On Feb 18, 2013, at 2:34 PM, Steve Mills <email@hidden> wrote:
>
> Shouldn't I get a mouseExited message when I switch windows via command-` if the mouse is still within my tracking area? If not, what do I have to do to be notified when the window the view is no longer the active window?
I'm not certain of the answer to this question, but what does your -updateTrackingAreas look like? If you follow Apple's erroneous example and recreate your tracking are every time this method is called, you *will* drop -mouseExited: events on the floor.
A correct override of -updateTrackingAreas only creates and installs the tracking area if it has not already been created and installed. I don't know for certain if this fixes the window-changed situation.
--Kyle Sluder
_______________________________________________
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