• 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: Scroller With CATiledLayer Running out of Memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroller With CATiledLayer Running out of Memory


  • Subject: Re: Scroller With CATiledLayer Running out of Memory
  • From: Gordon Apple <email@hidden>
  • Date: Fri, 06 Aug 2010 20:07:09 -0500
  • Thread-topic: Scroller With CATiledLayer Running out of Memory

I thought that was what the scroller was supposed to do for you, at least if
you actually optimized drawing to use the "rect" in drawRect, which is what
I am currently trying to do.

I may have something else going on.  The version in the app store works
fine, but my current one is now crashing all over the place, even though
(for testing) I went back to native tile size and no optimized drawing.
Unfortunately, running out of memory, the stack trace leads back to the run
loop and provides nothing useful.


On 8/6/10 7:13 PM, "David Duncan" <email@hidden> wrote:

> On Aug 6, 2010, at 2:09 PM, Gordon Apple wrote:
>
>> BTW, the reason I went to a tiled layer in the first place is that CALayer
>> crapped out long before that and only allowed a fairly short document view
>> length.
>
>
> The trick is to do something similar to what UITableView does ­ (re)use a
> small set of layers or views that do your drawing as you scroll through the
> document. This allows you to maintain control of memory usage as well.
> --
> David Duncan
>



_______________________________________________

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: Scroller With CATiledLayer Running out of Memory
      • From: David Duncan <email@hidden>
References: 
 >Re: Scroller With CATiledLayer Running out of Memory (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Wow! Just installed OPENSTEP ENTERPRISE 4.2
  • Next by Date: Re: Core Data : Multiuser ?
  • Previous by thread: Re: Scroller With CATiledLayer Running out of Memory
  • Next by thread: Re: Scroller With CATiledLayer Running out of Memory
  • Index(es):
    • Date
    • Thread