Setting position of CALayer doesn't animate
Setting position of CALayer doesn't animate
- Subject: Setting position of CALayer doesn't animate
- From: Steve Mills <email@hidden>
- Date: Sun, 31 Mar 2013 22:45:36 -0500
Trying to learn animation stuff here, but it isn't working as documented. I have a CALayer installed on my view (subclass of ScreenSaverView). Then another CALayer is added as a subLayer on that first layer. At some point after the layer has been initially drawn, I want to move it to a new position, so:
self.subLayer1.position = SSRandomPointForSizeWithinRect(NSMakeSize(100, 100), self.frame);
Rather than using the default animation timing, it jumps directly to the new location. Maybe I'm confused after reading all the docs, but I thought this was what Apple refers to as an implicit transaction, and any changes in the layer properties would be animated with default values. If not, I guess I'll use the more complex explicit transaction methods. Could it be because this is a screensaver plugin instead of an app?
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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