• 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
Re: Overlapping sibling views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Overlapping sibling views (From: Gideon King <email@hidden>)
 >Re: Overlapping sibling views (From: Quincey Morris <email@hidden>)

  • Prev by Date: NSOutlineView Storing/Restoring Disclosure Paths
  • Next by Date: Re: Laying out text in NSTextView around a subview
  • Previous by thread: Re: Overlapping sibling views
  • Next by thread: Animate magnifyToFitRect:
  • Index(es):
    • Date
    • Thread