• 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: Re: Tracking rectangles and bezier paths (Wagner Truppel)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Tracking rectangles and bezier paths (Wagner Truppel) (From: Dave Budde <email@hidden>)

  • Prev by Date: Re: Speaking of tracking rects...
  • Next by Date: clicking through
  • Previous by thread: Re: Tracking rectangles and bezier paths (Wagner Truppel)
  • Next by thread: Speaking of tracking rects...
  • Index(es):
    • Date
    • Thread