What is the identify of your delegate? On Dec 18, 2013, at 10:51 AM, Seth Willits <sli...@araelium.com> wrote:
> Short version: > > In 10.9 only: My CALayer's delegate doesn't implement **any** delegate > methods, but because a delegate is set, the layer's position will not > implicitly animate. If I don't set it, it works fine. > > > > > Longer version: > > I have a view hosting a very plain root layer, and then this layer in > question as a sublayer of that root layer. > > > rootLayer = [[CALayer alloc] init]; > self.layer = rootLayer; > self.wantsLayer = YES; > > rootLayer.frame / bounds / delegate = ...; > > sublayer = [[CALayer alloc] init]; > sublayer.frame / bounds = ...; > sublayer.delegate = self; > > > > Later on I simply move it... > > [CATransaction begin]; > [CATransaction setAnimationDuration:1.0]; > [CATransaction setAnimationTimingFunction:[CAMediaTimingFunction > functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; > > sublayer.position = newPosition; > [CATransaction commit]; > > > > ... and it's not animating. I have narrowed it down to the delegate being > non-nil, even if the delegate implements none of the delegate methods. If I > don't set it, it works fine. This was working fine for yeeeeeeears and now in > 10.9 it's behaving differently. > > > What could possibly be happening? > > > > -- > Seth Willits > > > > > _______________________________________________ > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com