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

Guidance on CATiledLayer


  • Subject: Guidance on CATiledLayer
  • From: Graham Cox <email@hidden>
  • Date: Sun, 30 Dec 2012 15:48:01 +1100

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@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: Guidance on CATiledLayer
      • From: David Duncan <email@hidden>
  • Prev by Date: Finder Source List Icons
  • Next by Date: Re: Finder Source List Icons
  • Previous by thread: Re: Finder Source List Icons
  • Next by thread: Re: Guidance on CATiledLayer
  • Index(es):
    • Date
    • Thread