• 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
Re: mouseMoved: or multiple trackingRects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouseMoved: or multiple trackingRects?


  • Subject: Re: mouseMoved: or multiple trackingRects?
  • From: Lee Ann Rucker <email@hidden>
  • Date: Wed, 8 Aug 2007 17:38:43 -0700

In my XTide port, I provided tooltips for all the visible tide stations. I'd imagine there are tracking rects somewhere in the implementation of tool tips, and I'm sure at some point I had a couple of hundred tooltips active without any trouble.

On 8.8.2007, at 15:28, Richard Pollock wrote:

Dear list,

I have a custom NSView that displays a DNA sequence (a string
containing the letters A,T,C and G) horizontally with letter spacing
controlled by an NSSlider. I've managed to implement mouse tracking
such that a vertical bar (extending to the full height of the view)
follows the mouse left and right along the view using mouseMoved:
inside a trackingRect covering the whole view.

However, I'd now like it to "snap" to each of the letters in the
sequence. I could continue using mouseMoved: and only show the box at
certain positions, but I wondered whether using a trackingRect for
every letter in the sequence would work better (using mouseEntered:
and mouseExited: for each one to highlight it).

Has anyone tried either of these methods and, if so, what were your
experiences? Would having up to ~200 trackingRects in the view present
any obvious problem? Googling "multiple tracking rects/mouseMoved:"
hasn't thrown up anything obvious...

Many thanks,
Rich
_______________________________________________

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

_______________________________________________

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


References: 
 >mouseMoved: or multiple trackingRects? (From: "Richard Pollock" <email@hidden>)

  • Prev by Date: Re: Integrating Unix scripting in Cocoa app
  • Next by Date: Re: mouseMoved: or multiple trackingRects?
  • Previous by thread: Re: mouseMoved: or multiple trackingRects?
  • Next by thread: Re: mouseMoved: or multiple trackingRects?
  • Index(es):
    • Date
    • Thread