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 (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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com