On Thu, Feb 25, 2010 at 3:00 AM, Billy Flatman <b.flat...@googlemail.com> wrote: >>>> Hi all, >>>> >>>> I've written a custom view and done some optimisation of the drawing calls >>>> so only the exact areas that need redrawing are passed to the >>>> 'setNeedsDisplayInRect' function. >>>> >>>> All was working well, until I embedded my view into an NSScroller. >>>> >>>> Since then my custom view seems to be being invalidated by grid sections. >>>> >>>> I've included a link to some pics to try and better show. >>>> >>>> http://www.flickr.com/photos/47616...@n08/sets/72157623505127258/ >>>> >>>> I added the green borders around the dirtyRect area to better show the >>>> problem.
Is your view layer-backed, either directly or by being a subview of one which is explicitly layer-backed? If so, then it will automatically become backed by a CATiledLayer once it's embedded in a scroll view, which would cause exactly the sort of thing you're seeing. Mike _______________________________________________ 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