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" <david.dun...@apple.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to