Hi everyone.After explore the Core Animation for a while, I found that the
"fromValue" property of CAAnimation was only set to NSNumber in many samples
and tutorials, although the Apple's document says it accepts the "id" value.

I am wondering whether I could set  this property to NSColor or CGColor
inorder to change the layer color dynamically. For example, If I want to
change a Green layer to a red one from time to time, could anyone give me a
guidance?

Thank you very much for any help.

-- 
Best regards.
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to