Re: Re: Tracking rectangles and bezier paths (Wagner Truppel)
Re: Re: Tracking rectangles and bezier paths (Wagner Truppel)
- Subject: Re: Re: Tracking rectangles and bezier paths (Wagner Truppel)
- From: "Michael Ash" <email@hidden>
- Date: Sun, 10 Sep 2006 08:36:04 -0400
On 9/9/06, Dave Budde <email@hidden> wrote:
Wagner, thanks for all that information. Unfortunately (or
fortunately depending on your point of view) I already know how to
compute the bezier function and see an approach to get what I want.
But I was trying to actually avoid writing any code to do this if in
fact there was some built-in mechanism that works like tracking
rects. Apparently there isn't so either I'll do the brute force or
just implement control point tracking which is trivial.
If anyone from Apple is monitoring this, please implement a tracking
curve mechanism in a future version.
I'm assuming "brute force" means enabling mouse moved events and
tracking things every time the mouse moves. I personally have always
found this to be easier than using actual tracking rects. Tracking
rects always seem to be difficult and broken in fascinating ways,
whereas recomputing things in mouseMoved: is pretty simple. There are
things to work around, such as the fact that mouseMoved: only goes to
the first responder, but they're fixable. In the end it's no harder,
and you can track arbitrary areas to boot. It's harder for the
*computer*, but that's rarely important.
Mike
_______________________________________________
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