• 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
CATiledLayer tile invalidation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CATiledLayer tile invalidation


  • Subject: CATiledLayer tile invalidation
  • From: Dmitry Pugachev <email@hidden>
  • Date: Mon, 24 Mar 2008 18:39:55 +0300

I'm writing an application that dynamically renders
contents into a large scrollable view, and I'm using
a CATiledLayer object as a content layer.  It handles
tiled drawing pretty well, but I also want to be able
to synchronize it with my internal cache, which contains
temporary data for each tile being rendered.

While I can add content to this internal cache as I
render individual tiles, I can't seem to be able to
invalidate off-sceen portions of the cache when
the corresponding portions of the internal CATiledLayer
image buffer get invalidated.  For example, if I scroll
down continuously, each new tile rendered would
add data to my internal cache, while the old tiles
will never get invalidated.  On the other hand, I want
to be able to keep the cache size under control by
removing old content, just like CATiledLayer does
for its internal image data.

Is there a way to register a callback that will be
invoked by CATiledLayer when it internally
invalidates an outdated portion of its content?

Thanks in advance,
Dmitry
_______________________________________________

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: CATiledLayer tile invalidation
      • From: John Harper <email@hidden>
  • Prev by Date: Re: Garbage collection - was Beginner with Cocoa
  • Next by Date: Communications between multiple NIB's
  • Previous by thread: NSOutlineView loses selection, but it's NSTreeController does not
  • Next by thread: Re: CATiledLayer tile invalidation
  • Index(es):
    • Date
    • Thread