Tracking Rect Obtuseness
Tracking Rect Obtuseness
- Subject: Tracking Rect Obtuseness
- From: Henry McGilton <email@hidden>
- Date: Sun, 18 May 2003 10:44:32 -0700
I am using tracking rects on a view so I can get mouseEntered
and mouseExited messages to do highlighting. I have discovered
by trial and error (and error, and error . . .) that if I add
the tracking rect *before* I add the view to its superview,
the tracking doesn't work. If I add the tracking rect
*after* placing the view in its superview, then it works as
I expect.
Similarly, this means that I can not have the initWithFrame
method of the view itself add the tracking rect to itself at
init time, which to me seems like the most reasonable place
to do the work.
So, what is the story with tracking rects?
Best Wishes,
........ Henry
===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
|
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.