Re: Problems with a Layer backed NSView in a NSScrollView
Re: Problems with a Layer backed NSView in a NSScrollView
- Subject: Re: Problems with a Layer backed NSView in a NSScrollView
- From: Gordon Apple <email@hidden>
- Date: Thu, 19 Jun 2008 16:14:03 -0500
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?
_______________________________________________
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