Re: detecting mouse movement when window is inactive
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