Speaking of tracking rects...
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