• 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: CALayers in seperate, overlapping, NSViews don't overlap correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayers in seperate, overlapping, NSViews don't overlap correctly


  • Subject: Re: CALayers in seperate, overlapping, NSViews don't overlap correctly
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 14 Mar 2011 13:33:40 -0700

On Mon, Mar 14, 2011 at 1:13 PM, James Bucanek <email@hidden> wrote:
> Here's the weird thing: sometimes, but not all the time, the CALayers in the
> nested subviews draw ON TOP OF the CALayers in the top-level overlay view.
> It's almost as if whatever the last CALayer that gets drawn, draws on top of
> all of the other CAlayers in the window. This seems really strange, because
> within a single CALayer, sublayers appear to be strictly ordered and always
> draw over the layers behind them.

You're not putting subviews inside of layer-hosting views, are you?

We have a simpler version of what you describe (a scroll view contains
both a layer-hosting document view as well as a layer-backed view
added with -addSubview:layerBackedView positioned:NSWindowAbove
relativeTo:[scrollView documentView]) that works fine. But the
layer-backed glue can be very fickle with view Z-ordering.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: CALayers in seperate, overlapping, NSViews don't overlap correctly
      • From: James Bucanek <email@hidden>
References: 
 >CALayers in seperate, overlapping, NSViews don't overlap correctly (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?
  • Next by Date: Re: [iOS] How to animate the height of a UITableViewCell
  • Previous by thread: CALayers in seperate, overlapping, NSViews don't overlap correctly
  • Next by thread: Re: CALayers in seperate, overlapping, NSViews don't overlap correctly
  • Index(es):
    • Date
    • Thread