Re: Overlapping sibling views
Re: Overlapping sibling views
- Subject: Re: Overlapping sibling views
- From: Sean McBride <email@hidden>
- Date: Tue, 30 Apr 2013 13:56:07 -0400
- Organization: Rogue Research Inc.
On Tue, 30 Apr 2013 01:30:00 -0700, Quincey Morris said:
>On Apr 30, 2013, at 00:39 , Gideon King <email@hidden> 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 email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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