Markus Spoettl <mailto:[EMAIL PROTECTED]> wrote (Monday, June 30, 2008 11:52 PM -0700):
However, I can't figure out a way to get -mouseMoved: messages on the overlay window's view. Tracking areas as well as -mouseMoved: messages (with setting acceptsMouseMovedEvents:YES on the overlay window) don't work because the overlay window is borderless (NSBorderlessWindowMask) and transparent and the framework does not send those messages to it.

Tracking rects in child windows is broken in Leopard. If you try this under Tiger it will work consistently.

I've already filed a bug (5689076) and it's still marked as Open." Feel free to file a duplicate.

One quirk of the bug is that if you hide the window (hide the app or minimize the window), then reveal it again, the tracking rects start working.

The workaround I developed for my application was to translate the tracking rects to the coordinate system of the parent window and attach the tracking rects to the parent window instead. The parent window then receives the various mouseMoved: events and passes them back to the child window for handling. A little kludgy, but it works.

--
James Bucanek

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to