Skip navigation.
 
mlRe: Problems with a Layer backed NSView in a NSScrollView
FROM : Gordon Apple
DATE : Thu Jun 19 23:14:03 2008

As I stated in my recent post, I implemented my own transform to flip
the layer since nothing else worked.  That worked, and my view is in a
scrolling window.  What I'm currently having trouble with is scaling the
view.  My window is similar to that in Sketch, with a popup scale factor in
the lower scroll bar.  I've tried a variety of things including regenerating
the CALayers, but so far haven't been able to get the layers to scale to the
coordinates of the underlying view.  Again, I'll probably figure it out
eventually, but this stuff just shouldn't be that difficult.  IMHO, there is
not enough automatic coupling adjustments between the view and its layer
parameters to handle these issues.

> I've tried
>
> [[[self pageScrollView] contentView] setWantsLayer:YES];
>
> This results in a still flipped display, and very badly corrupted, lots of
> artifacts etc....
>
> [[self pageScrollView] setWantsLayer:YES];
>
> Nice display, but still flipped.
>
> The transform that used to work before I tried the above line makes no
> difference if I set the scrollview to be layer backed.
>
> Any ideas?

Related mailsAuthorDate
mlProblems with a Layer backed NSView in a NSScrollView Moray Taylor Jun 19, 17:38
mlRe: Problems with a Layer backed NSView in a NSScrollView Moray Taylor Jun 19, 19:54
mlRe: Problems with a Layer backed NSView in a NSScrollView Gordon Apple Jun 19, 23:14
mlRe: Problems with a Layer backed NSView in a NSScrollView Brian Christensen Jun 20, 07:17
mlRe: Problems with a Layer backed NSView in a NSScrollView Moray Taylor Jun 20, 14:16
mlRe: Problems with a Layer backed NSView in a NSScrollView Kai Jun 20, 15:26