• 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: detecting mouse movement when window is inactive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting mouse movement when window is inactive


  • Subject: Re: detecting mouse movement when window is inactive
  • From: "I. Savant" <email@hidden>
  • Date: Sun, 22 Jul 2007 20:56:39 -0400

Uli / Mitchell:

Read the docs. There's a method you're supposed to implement, - resetTrackingRects or something like that. That's where you're supposed

<snip>

I've been using removeTrackingRect, and can't find anything in regards to invalidating. I'm still getting very erratic behavior that leads to crashing.

<snip>

The "reset" method is for cursor rects (- invalidateCursorRectsForView:) is a method of NSWindow. You need to manage the tracking rects manually (adding and removing any time bounds change, for example).

In your case, the problem is a bit more complicated since any time your outline view reloads its data, you'll need to remove and re-add tracking rects for the potentially new set of rows.

I have not taken a close look at your code because you have not given any specific information (such as stack traces during crashes, etc.). Narrow it down and you'll get much better answers.

--
I.S.



_______________________________________________

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: detecting mouse movement when window is inactive
      • From: Uli Kusterer <email@hidden>
References: 
 >Re: detecting mouse movement when window is inactive (From: Mitchell Livingston <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: "I. Savant" <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: Mitchell Livingston <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: Uli Kusterer <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: Mitchell Livingston <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: Uli Kusterer <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: Mitchell Livingston <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: Uli Kusterer <email@hidden>)
 >Re: detecting mouse movement when window is inactive (From: Mitchell Livingston <email@hidden>)

  • Prev by Date: Re: Comparing NSDictionary woes
  • Next by Date: All seems well but image doesn't show up.
  • Previous by thread: Re: detecting mouse movement when window is inactive
  • Next by thread: Re: detecting mouse movement when window is inactive
  • Index(es):
    • Date
    • Thread