• 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: How do I get CATransition to actually work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get CATransition to actually work?


  • Subject: Re: How do I get CATransition to actually work?
  • From: Scott Anguish <email@hidden>
  • Date: Sat, 27 Oct 2007 19:51:01 -0400


On Oct 27, 2007, at 3:26 PM, Nick Zitzmann wrote:


On Oct 27, 2007, at 12:56 PM, Scott Anguish wrote:

You shouldn't set the before and after images. the inputImage and inputTargetImage and the outputImage all are set up automatically for you by Core Animation.

How is it supposed to do that when it does not know the state of the view? Before I can do the transition, I need to get an NSBitmapImageRep of the view _before_ its state is changed, and then get a second image after changing the state of the view. This is in a view that does its own drawing independently of CoreAnimation. It's like plugging two images into a transition in the CoreImage Fun House app.

Ah, you're using it independent of CA.. I believe that this may be the issue. Transitions are supported for certain types of view actions (added/removed) but I don't believe you can do it with content like this. I'm checking though.


If you're in a straight CA environment the layer it can provide the state before and after by imaging it with the new value you've set the property to, and the original rendering.. and then animation between them taking the outputImage each time to display. I'm guessing if you provide this that the animation mechanism will override the values you set.

_______________________________________________

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: How do I get CATransition to actually work?
      • From: Nick Zitzmann <email@hidden>
References: 
 >How do I get CATransition to actually work? (From: Nick Zitzmann <email@hidden>)
 >Re: How do I get CATransition to actually work? (From: Scott Anguish <email@hidden>)
 >Re: How do I get CATransition to actually work? (From: Nick Zitzmann <email@hidden>)
 >Re: How do I get CATransition to actually work? (From: Scott Anguish <email@hidden>)
 >Re: How do I get CATransition to actually work? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Extracting information from WebView
  • Next by Date: Re: Interface Builder 3 -- Completely New!
  • Previous by thread: Re: How do I get CATransition to actually work?
  • Next by thread: Re: How do I get CATransition to actually work?
  • Index(es):
    • Date
    • Thread