• 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: iPhone: CATransition done (get the key?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone: CATransition done (get the key?)


  • Subject: Re: iPhone: CATransition done (get the key?)
  • From: glenn andreas <email@hidden>
  • Date: Wed, 13 Jan 2010 11:40:37 -0600

On Jan 13, 2010, at 11:18 AM, Eric E. Dolecki wrote:

> Is there a way to do it without retaining a reference? I could do that, but
> what is that key used for if not for referencing later somehow?
>

The key is used by the layer, not the animation.  Animations are just generic "generators" that take a time value and create a value - it's up to the layer to decide what to do with that value.

You can always use CALayer's animationForKey: to find out if it the animation for a specific key:

if ([theLayer animationForKey:@"fadeIn"] == theAnimation) {
}




Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know

_______________________________________________

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

  • Follow-Ups:
    • Re: iPhone: CATransition done (get the key?)
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >iPhone: CATransition done (get the key?) (From: "Eric E. Dolecki" <email@hidden>)
 >Re: iPhone: CATransition done (get the key?) (From: Fritz Anderson <email@hidden>)
 >Re: iPhone: CATransition done (get the key?) (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: CATransition done (get the key?)
  • Next by Date: Re: Scaled NSImage size of NSImageView?
  • Previous by thread: Re: iPhone: CATransition done (get the key?)
  • Next by thread: Re: iPhone: CATransition done (get the key?)
  • Index(es):
    • Date
    • Thread