Re: What is the default time for a CALayer transform?
Re: What is the default time for a CALayer transform?
- Subject: Re: What is the default time for a CALayer transform?
- From: Klaus Backert <email@hidden>
- Date: Tue, 16 Dec 2008 16:34:52 +0100
On 16.12.2008, at 15:27, Gustavo Pizano wrote:
Hello Dimitri.
CAAnimation* rotateAnimation = [CABasicAnimation
animationWithKeyPath:@"transform"];
rotateAnimation.fromValue = [NSValue
valueWithCATransform3D:nLayer.transform];
rotateAnimation.toValue = [NSValue
valueWithCATransform3D:transform];
its gives me an error, Error request for member "fromValue" in
something not a structure or union.
shouldn't it be CABasicAnimation which has the fromValue and toValue
properties.?
CAAnimation inherits from NSObject and doesn't have fromValue and
toValue properties, but CABasicAnimation has (which is derived from
CAPropertyAnimation, which is derived from CAAnimation).
This would be a good time reading the documentation, I think ;-)
Klaus
_______________________________________________
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