Hi all,

I'm just looking for a bit of general guidance/encouragement regarding the use 
of CATiledLayer

I have a view which is layer hosting and I'm using layers to represent many 
small items in the view. That's all fine, but I also want to have a grid in the 
background (like graph paper). I've implemented that using CAShapeLayer 
currently and it works fine, as long as the layer doesn't get too big. However, 
the layer can get large when the view is zoomed in, or just given a large 
bounds - I run into errors logged about a surface being too large (presumably 
the OpenGL textures generated by the layer exceed some internal limit).

In looking for a solution, I came across CATiledLayer, which appears to offer a 
solution, since the graph paper has generally the same appearance everywhere. 
But it's not that clear from documentation whether it's the right tool for the 
job. The layer itself needs to be the size of the view and the view's frame can 
get large with zooming. Is that how CATiledLayer works? It allows the layer 
frame to be as large as you like and tiles its content to fit?

I will proceed to experiment but if anyone has any experience of this I would 
welcome any encouraging (or otherwise) remarks.

--Graham



_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to