• 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: Technology recommendations for animation/display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Technology recommendations for animation/display


  • Subject: Re: Technology recommendations for animation/display
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 26 Mar 2012 21:17:51 -0700

On Mar 26, 2012, at 8:17 PM, Kenneth Baxter wrote:

> Yes, that works if you are using pure CALayers - no problem there, but if you are using layer backed views, it doesn't work - see e.g. http://www.cocoabuilder.com/archive/cocoa/294950-problem-using-zposition-on-layer-backed-views.html
>
> ...so it still looks as if layer backed views are out…

To be clear, you can do a limited number of things with layer-backed views. You can override -makeBackingLayer, for example, and customize the view's layer's appearance.

But AppKit has its own internal understanding of zPosition that will conflict with yours when you least expect it. You _can_ safely have a layer-hosting view (call -setLayer: before calling -setWantsLayer:) as a subview of a layer-backed view (call -setWantsLayer: without calling -setLayer:). You _cannot_ have a layer-backed view as a subview of a layer-hosting view, nor should you add, remove, or manipulate the layers and sublayers of a layer-backed view.

--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


References: 
 >Re: Technology recommendations for animation/display (From: Kenneth Baxter <email@hidden>)

  • Prev by Date: Re: Technology recommendations for animation/display
  • Next by Date: Re: How to throttle rate of NSInputStream?
  • Previous by thread: Re: Technology recommendations for animation/display
  • Next by thread: ARC not ready for primetime?
  • Index(es):
    • Date
    • Thread