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 (Cocoa-dev@lists.apple.com)
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/archive%40mail-archive.com
This email sent to arch...@mail-archive.com