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

2010-05-25 Thread Kyle Sluder
On Mon, May 24, 2010 at 2:24 PM, Kyle Sluder wrote: > At this point, I don't think there's anything further I can do to work > around this bug. Well, Tim Wood gave me the idea to call -_updateLayerGeometryFromView in an override of -viewWillDraw. This does the trick, and avoids the single frame f

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

2010-05-24 Thread Kyle Sluder
On Fri, May 21, 2010 at 3:20 PM, Kyle Sluder wrote: > I'm hoping I've done something wrong in setting up the layer. Is it > perhaps because of the way I've turned off the redraw policy and set > the layer resizing behavior? The documentation seems to imply that I > have done the correct thing (set

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

2010-05-21 Thread Kyle Sluder
On Fri, May 21, 2010 at 11:06 AM, Troy Stephens wrote: > Sure.  Let us know if you run into further difficulty with this. Unfortunately I have indeed hit more difficulty. I've attached an updated demo project to the Radar as well as uploaded it to http://www.lanechng.com/ScrolledLayerHostingView

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

2010-05-21 Thread Kyle Sluder
On Fri, May 21, 2010 at 11:06 AM, Troy Stephens wrote: > You can use geometryFlipped on your documentView's layer for this purpose, if > and only if your documentView isn't going to have any subviews.  If you > control all the content (build it out of your own layers) from there on down, > you'

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

2010-05-21 Thread Troy Stephens
On May 21, 2010, at 10:52 AM, Kyle Sluder wrote: > On Fri, May 21, 2010 at 10:37 AM, Troy Stephens wrote: >> CALayers don't support the same notion of "flippedness" that NSView's >> geometry model uses. (CALayer's "geometryFlipped" property is recursive in >> its effect, so isn't semantically i

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

2010-05-21 Thread Kyle Sluder
On Fri, May 21, 2010 at 10:37 AM, Troy Stephens wrote: > CALayers don't support the same notion of "flippedness" that NSView's > geometry model uses.  (CALayer's "geometryFlipped" property is recursive in > its effect, so isn't semantically identical.) Hmm. Perhaps instead of using geometryFlip

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

2010-05-21 Thread David Duncan
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

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

2010-05-21 Thread Troy Stephens
Hi Kyle, On May 20, 2010, at 12:12 PM, Kyle Sluder wrote: > On Thu, May 20, 2010 at 9:52 AM, Kyle Sluder wrote: >> I have uploaded a sample project to >> http://www.lanechng.com/ScrolledLayerHostingView.zip. Resize the >> window to see the problem in action; then click one of the scroll >> arrows

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

2010-05-20 Thread Kyle Sluder
On Thu, May 20, 2010 at 9:52 AM, Kyle Sluder wrote: > I have uploaded a sample project to > http://www.lanechng.com/ScrolledLayerHostingView.zip. Resize the > window to see the problem in action; then click one of the scroll > arrows to see it fix itself. Well, I've filed rdar://problem/8009542 w

Layer-hosting views and layer-backed scroll views

2010-05-20 Thread Kyle Sluder
We have a layer-hosting document view that is contained in a layer-backed scroll view. We have noticed that the scroll view does some funky stuff to the layer if the view's -isFlipped returns YES. This manifests itself in our app in the form of our document view being scrolled by the correct amount