• 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
Tracking Rect Obtuseness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Radio-Button with fixed width per cell
  • Next by Date: Re: [Q] How do I Create an NSEvent Using Runtime Functions?
  • Previous by thread: Radio-Button with fixed width per cell
  • Next by thread: Re: Tracking Rect Obtuseness
  • Index(es):
    • Date
    • Thread