Re: Setting position of CALayer doesn't animate
Re: Setting position of CALayer doesn't animate
- Subject: Re: Setting position of CALayer doesn't animate
- From: David Duncan <email@hidden>
- Date: Tue, 02 Apr 2013 11:35:12 -0700
What class is acting as the layer's delegate?
On Mar 31, 2013, at 8:45 PM, Steve Mills <email@hidden> wrote:
> 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
--
David Duncan
_______________________________________________
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