I have set a perspective transform, when I did not the zPosition did
not have any effect.
Just to be clearer, I see the transform applied correctly, I just
don't get the animation of that property of the layer.
I've had some answer off list that we should expect more details soon
of what we can and can't do with the layer of a view.
2007/11/1, Andre <email@hidden>:
Have you set a perspective transform on the CA3DTransform3D value of
the enclosing layer? (The layer that encloses all your sublayers)
If you don't set a perspective transform, then z-position changes
won't animate.....
Also, what are the values you are setting for the Z-position?
Sometimes setting the z-position to some outrageous number causes
trouble..... (I haven't tested with 9A581)
I've noticed some oddities with CALayer backed NSViews....
basically 3-
d rotation and stuff is a bit wonky.... at least in the betas it
was.... hit detection doesn't work in 3-d for example....
Moving in 2-d space though should be fine...
Andre
On 平成 19/11/01, at 18:56, Bertrand Landry-Hetu wrote:
Hi list,
I'm playing around with layers and there are some subtleties I don't
quite get when using layer backed views. I did some animations using
"pure" CALayers as a proof of concept for a view. Along the way I
figured I'd like to have subviews (NSViews) embedded in it and so I
went back to do everything using NSViews that have setWantsLayer set
to yes.
I noticed that if I change the zPosition of the view's layer it does
not animate while it used to when using CALayers only. The position
changes correctly, I'm only missing the animation. Changing the
view's
frame using the animator works fine. I'm wondering, is it safe to
change attributes of the layer when the view is in layer backed
mode?
If it is not safe, is there a way to change transform of the view ?
Thanks.
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/listposter
%40mac.com
This email sent to email@hidden
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden