• 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 requesting tiles that are way out of view bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CATiledLayer requesting tiles that are way out of view bounds


  • Subject: CATiledLayer requesting tiles that are way out of view bounds
  • From: Steve Mills <email@hidden>
  • Date: Thu, 11 Jul 2013 13:10:13 -0500

We have an NSView subclass. It's in an NSScrollView. The view has 1 CALayer added to it, so we have the view's wantsLayer set to YES. This gives us tiled drawing in our view. We have a case where the view is over 5000 pixels wide and the scroll view is only 600 and some wide. If we jump to the extreme right by using [view scrollPoint:pos], we're seeing some of the tiles having an x origin way back at 0, while some are correctly way over at the right around 5000. What's going on here? If we're revealing the rightmost portion of the view, it has no business drawing the leftmost portion. Below shows the output of the current CGContextGetClipBoundingBox.

{origin = {x = 0, y = 191}, size = {width = 512, height = 512}}
{origin = {x = 512, y = 703}, size = {width = 512, height = 512}}
{origin = {x = 0, y = 703}, size = {width = 512, height = 512}}
{origin = {x = 5120, y = 191}, size = {width = 512, height = 512}}
{origin = {x = 4608, y = 191}, size = {width = 512, height = 512}}
{origin = {x = 512, y = 191}, size = {width = 512, height = 512}}
{origin = {x = 0, y = 191}, size = {width = 512, height = 512}}
{origin = {x = 5632, y = 703}, size = {width = 292, height = 512}}
{origin = {x = 5120, y = 703}, size = {width = 512, height = 512}}
{origin = {x = 4608, y = 703}, size = {width = 512, height = 512}}
{origin = {x = 512, y = 703}, size = {width = 512, height = 512}}
{origin = {x = 0, y = 703}, size = {width = 512, height = 512}}

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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 requesting tiles that are way out of view bounds
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSTextField: edits are committed even when -control:isValidObject: returns NO
  • Next by Date: Re: NSTextField: edits are committed even when -control:isValidObject: returns NO
  • Previous by thread: Re: [SOLVED] NSTextField: edits are committed even when -control:isValidObject: returns NO
  • Next by thread: Re: CATiledLayer requesting tiles that are way out of view bounds
  • Index(es):
    • Date
    • Thread