• 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: Layer-hosting views and layer-backed scroll views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Layer-hosting views and layer-backed scroll views


  • Subject: Re: Layer-hosting views and layer-backed scroll views
  • From: David Duncan <email@hidden>
  • Date: Fri, 21 May 2010 10:43:38 -0700

On May 21, 2010, at 10:37 AM, Troy Stephens wrote:

> By the way: I don't know whether CAGradientLayer disregards -setNeedsDisplay (since the layer renders its content programmatically), possibly making this irrelevant in practice, but in cases like this, where you provide a layer of your own that already has content, and you don't want AppKit to ever invoke the view's -drawRect: to draw view content into the layer, it's a good idea to -setLayerContentsRedrawPolicy:NSViewLayerContentsRedrawNever on the view.


The CAGradientLayer (and the CAShapeLayer) both respect -setNeedsDisplay and go through the normal CG drawing path, so it would definitely be recommended to specify the never redraw policy.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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: 
 >Layer-hosting views and layer-backed scroll views (From: Kyle Sluder <email@hidden>)
 >Re: Layer-hosting views and layer-backed scroll views (From: Kyle Sluder <email@hidden>)
 >Re: Layer-hosting views and layer-backed scroll views (From: Troy Stephens <email@hidden>)

  • Prev by Date: Re: Layer-hosting views and layer-backed scroll views
  • Next by Date: Re: NSXMLParser initWIthData - Encoding?
  • Previous by thread: Re: Layer-hosting views and layer-backed scroll views
  • Next by thread: Re: Layer-hosting views and layer-backed scroll views
  • Index(es):
    • Date
    • Thread