• 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: Drawing to two CALayers at once (or pretend to)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing to two CALayers at once (or pretend to)?


  • Subject: Re: Drawing to two CALayers at once (or pretend to)?
  • From: Raphael Sebbe <email@hidden>
  • Date: Tue, 28 Dec 2010 00:21:44 +0100

I think a single model instance, storing a parsed path, accessed by both
layers sounds like the best approach. If you have lots and lots of paths,
then the memory problem would be secondary to the problem of the time it
would take to parse them from your DB.

If you have actual figures, we can discuss that too.

Best,

On Mon, Dec 27, 2010 at 11:24 PM, vincent habchi <email@hidden> wrote:

> Le 27 déc. 2010 à 23:12, Seth Willits a écrit :
>
> > That, but I also don't see why the two layers would need to read the data
> separately. For example, their delegate can be the one to fetch and read the
> data and create the path from it, then save that CG path. When either layer
> draws, it would simply use that path. It'd be trivial.
>
> That would be a nice trick, since it is more efficient to have the CGPaths
> directly stored in a kind of NSArray than recomputed out of the DB, but I
> see an obvious drawback: it is going to use a lot of memory to have all
> CGPaths stored. Ideally, I was thinking about a way to do both operations
> "at once", so the DB could be read line by line and contents immediately
> discarded (no real memory overhead); but that seems unrealistic, given the
> present state of the CA API.
>
> Thanks too for this idea,
> Vincent_______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>



--
Raphael Sebbe
Creaceed — Creative iPhone & Mac apps
••• Twitter: http://twitter.com/rsebbe
••• Web: http://www.creaceed.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Drawing to two CALayers at once (or pretend to)?
      • From: vincent habchi <email@hidden>
References: 
 >Drawing to two CALayers at once (or pretend to)? (From: vincent habchi <email@hidden>)
 >Re: Drawing to two CALayers at once (or pretend to)? (From: Fritz Anderson <email@hidden>)
 >Re: Drawing to two CALayers at once (or pretend to)? (From: vincent habchi <email@hidden>)
 >Re: Drawing to two CALayers at once (or pretend to)? (From: Seth Willits <email@hidden>)
 >Re: Drawing to two CALayers at once (or pretend to)? (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Drawing to two CALayers at once (or pretend to)?
  • Next by Date: Re: Drawing to two CALayers at once (or pretend to)?
  • Previous by thread: Re: Drawing to two CALayers at once (or pretend to)?
  • Next by thread: Re: Drawing to two CALayers at once (or pretend to)?
  • Index(es):
    • Date
    • Thread