Skip navigation.
 
mlTracking rect strangeness in Leopard
FROM : James Bucanek
DATE : Mon Jan 14 21:52:33 2008

Greetings,

I have an application that uses tracking rects extensively to
provide roll-over information and animation. These have stopping
working consistently in Leopard.

When the window is first created it creates tracking rects using
-[NSView addTrackingRect:owner:userData:assumeInside:]. In
Leopard I never get a single mouseEntered/mouseExited message
for any of these tracking rects. No amount of clicking,
dragging, scrolling, resizing, changing focus, or
deactivating/activating the application or window seems to make
any difference.

However, if I hide the application or minimize the window, when
the window is made visible again all of the tracking rects start
working, and mouseEntered/mouseExited messsages come pouring in.
Note that these are not new tracking rects; these were the same
ones created earlier that weren't working.

Once they start working I can't get them to stop again.
Everything works just as it did in Tiger not matter what I try.
The only way to reproduce the problem is to close the window and
create a new one, at which point the tracking rects in the new
window won't work.

The only confounding issue is that these tracking rects are
being created for a subclass of NSView that lives in a
transparent child window that overlays my document window.

Has anyone experienced this problem or a similar one? Any known workarounds?

Thanks,

James
--
James Bucanek

Related mailsAuthorDate
mlTracking rect strangeness in Leopard James Bucanek Jan 14, 21:52
mlRe: Tracking rect strangeness in Leopard James Bucanek Jan 15, 23:05