• 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
Re: Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample)


  • Subject: Re: Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample)
  • From: Thomas Engelmeier <email@hidden>
  • Date: Wed, 15 Oct 2008 02:42:58 +0200


Am 14.10.2008 um 00:51 schrieb Jim Correia:

Problem #3:

My current hack is to begin the implicit animations in a group, and use a perform delayed action to cleanup after the animation (based on the groups interval.)

This feels like a hack though. Is there a better way?

I don't have a robust, good solution. but if you set the CAAnimationGroup delegate you might get the animationDidStop delegate method called.
Based on my empiric testing the gotcha is
a.) to know which views need cleanup one needs unique delegate objects
b.) the delegates are not guaranteed to be called - when an animation gets reapplied during a running animation the delegate method is not invoked, which introduces the problem of releasing the cleanup- delegates...


Maybe someone at Quartz-Dev has some better ideas (I need als a solution for #3. My hack to remove subviews after they are animated out - of - frame needs some serious improvement..)
Regards,
Tom_E


_______________________________________________

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


References: 
 >Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample) (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: VCards & Address Book -- Preferred Telephone Number
  • Next by Date: NSTask not cleaning up it's threads
  • Previous by thread: Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample)
  • Next by thread: Re: Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample)
  • Index(es):
    • Date
    • Thread