• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
kCAOnOrderOut animation not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: RE: Guidance for Cocoa's steep learning curve
  • Next by Date: Re: Guidance for Cocoa's steep learning curve
  • Previous by thread: Re: Set view in bottom right corner of NSTableView
  • Next by thread: Re: NSURLRequest : Unable to Quit App after Syn call to Server. SOLVED???
  • Index(es):
    • Date
    • Thread