• 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: NSTrackingInVisibleRect not working when view is resized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTrackingInVisibleRect not working when view is resized


  • Subject: Re: NSTrackingInVisibleRect not working when view is resized
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 26 Feb 2013 13:32:48 -0800

I will repeat my request from your last NSTrackingArea query:

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.

--Kyle Sluder

On Tue, Feb 26, 2013, at 12:46 PM, Steve Mills wrote:
> I have an NSControl subclass that has installed an NSTrackingAread for
> (NSTrackingInVisibleRect | NSTrackingMouseMoved |
> NSTrackingMouseEnteredAndExited | NSTrackingCursorUpdate |
> NSTrackingActiveInKeyWindow). This control can resize itself while
> tracking the mouse in its mouseDown method. If, after mouse-up, the mouse
> ends up outside the *original* frame, but is still inside the current
> frame, I'm getting a mouseExited. So it's like the NSTrackingArea code is
> caching an old frame or something like that instead of getting it
> directly from the view. Or is this some "undocumented behavior" I'm
> seeing?
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
> cell: 612-803-6157
>
>
>
> _______________________________________________
>
> 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
_______________________________________________

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: NSTrackingInVisibleRect not working when view is resized
      • From: Steve Mills <email@hidden>
    • Re: NSTrackingInVisibleRect not working when view is resized
      • From: Kyle Sluder <email@hidden>
References: 
 >NSTrackingInVisibleRect not working when view is resized (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: archiving report
  • Next by Date: Re: NSTrackingInVisibleRect not working when view is resized
  • Previous by thread: NSTrackingInVisibleRect not working when view is resized
  • Next by thread: Re: NSTrackingInVisibleRect not working when view is resized
  • Index(es):
    • Date
    • Thread