• 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
Speaking of tracking rects...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Speaking of tracking rects...


  • Subject: Speaking of tracking rects...
  • From: Dave Budde <email@hidden>
  • Date: Sat, 9 Sep 2006 20:01:12 -0700

I am working on an app that has several (16 actually) tracking rectangles for control points in a set of bezier curves. When implementing the tracking mechanism for mouseEntered and mouseExited I notice that tracking numbers start at 3 (at least for any addTrackingRects in my code). What are the other 2 tracking rects for?

And is there a way to reset the trackingNumber? It just seems to keep going up and up as I run the code. I assume it will wrap and not fault as I overflow the integer size. Someone speak up if this isn't true.

So I'm using some modulo arithmetic:

mTrackingNumber = ([theEvent trackingNumber] -3) % 16;

to figure out which trackingRect the mouse entered. This seems a bit odd. But does work.

Thanks in advance,

Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Speaking of tracking rects...
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: Tracking rectangles and bezier paths (Wagner Truppel)
  • Next by Date: QTRecorder Sample Code
  • Previous by thread: Re: Re: Tracking rectangles and bezier paths (Wagner Truppel)
  • Next by thread: Re: Speaking of tracking rects...
  • Index(es):
    • Date
    • Thread