kCAOnOrderOut animation not working
kCAOnOrderOut animation not working
- Subject: kCAOnOrderOut animation not working
- From: "Dion Crannitch" <email@hidden>
- Date: Fri, 16 May 2008 15:24:08 +0100
I'm using -defaultActionForKey: to add an animation when a sublayer is
removed from its parent. My animation is never used and instead the
sublayer fades out (which I assume is the default). But if I add the
animation to kCAOnOrderIn it works as I expect.
My sublayer class's defaultActionForKey: implementation looks like this:
+ (id<CAAction>)defaultActionForKey:(NSString *)key
{
if ([key isEqualToString:kCAOnOrderOut]) {
return [MyAnimation animation];
}
return [super defaultActionForKey:key];
}
What do I need to do to change the order out animation?
Thanks,
Dion Crannitch
_______________________________________________
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