• 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: How to trim a bezier path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to trim a bezier path?


  • Subject: Re: How to trim a bezier path?
  • From: Jim Marschke <email@hidden>
  • Date: Wed, 7 Dec 2005 06:50:38 -0800

But that means every time I want to draw the path I have to recreate it. That can take a while when I have thousands of points -- and multiple paths. The path itself seems to be a great storage area, and when I resize I just do a transform rather than rebuilding. There are easy ways to append data to a path, I was hoping someone knew of a way to remove data.

Jim


On Dec 7, 2005, at 7:26 AM, Jim Marschke wrote:

I have a small app which collects temperature data and graphs it over time. As I collect new data, I append it to an existing path. If I run this app for many days the bezier path gets large and eats up a lot of memory. What I want to do is set a limit of how much data I display (maybe a day or two) and once I reach that begin removing points from the beginning of the path as I add points to the end of it.

Is there a simple way to do this?

Instead of storing your data inside the path, store the data in your own storage area and generate the path from the last few points of that storage area.

Scott


_______________________________________________
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: How to trim a bezier path?
      • From: "John C. Randolph" <email@hidden>
    • Re: How to trim a bezier path?
      • From: Scott Thompson <email@hidden>
References: 
 >How to trim a bezier path? (From: Jim Marschke <email@hidden>)
 >Re: How to trim a bezier path? (From: Scott Thompson <email@hidden>)

  • Prev by Date: Bundle Reloading
  • Next by Date: Re: How to trim a bezier path?
  • Previous by thread: Re: How to trim a bezier path?
  • Next by thread: Re: How to trim a bezier path?
  • Index(es):
    • Date
    • Thread