On Tue, 30 Apr 2013 01:30:00 -0700, Quincey Morris said: >On Apr 30, 2013, at 00:39 , Gideon King <gid...@novamind.com> wrote: > >> My scenario is a whole lot of sibling, potentially translucent, >overlapping, layer backed views. > >I've never seen any evidence that sibling *NSView*s draw in the wrong >order since 10.5. I believe that 'drawRect:' is correctly called in the >back-to-front order of the sibling arrangement in the parent view. > >However, I *have* seen firsthand, in the last few weeks, that the layers >of siblings under a layer-backed parent view were composited in a random >order.
I've seen that too, you can reference: rdar://11852080 Overlapping NSViews draw in wrong order when layer hosting/backing is involved Duplicate/10348980 and: rdar://11805856 'View Programming Guide' doc incorrect about overlapping views My workaround is: // For some reason the views don't draw in the right order unless we give them a little kick. <rdar://11852080> id subviewsCache = [[[self stageHolderView1] subviews] copy]; [[self stageHolderView1] setSubviews:subviewsCache]; The bug dates from 10.7 and will presumably never be fixed, like most everything in Radar. Sorry, can't help it. :) Cheers, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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