• 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
Re: No mouseExited when switching windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >No mouseExited when switching windows (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Custom drawn window like Game Center
  • Next by Date: Re: dragging NSTableColumn to another table
  • Previous by thread: Re: No mouseExited when switching windows
  • Next by thread: dragging NSTableColumn to another table
  • Index(es):
    • Date
    • Thread