• 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: Simple Flipbook Animation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Flipbook Animation?


  • Subject: Re: Simple Flipbook Animation?
  • From: Matt Long <email@hidden>
  • Date: Fri, 31 Oct 2008 11:33:36 -0600

Look at overriding the layer transition. You can use a page curl filter, if that's your desired effect, to transition changes to the layer's content property.

- Create a CATransition object.
- Create a CIFilter that implements a page curl (Check out Apple's Core Image Filters docs and sample code).
- Set the transition object's filter parameter to your CIFilter
- Add the transtion to the layer actions for the key "content"


Then, whenever you set your layer's content parameter to the next image, it will use that transition instead of the default fade. This of course assumes that you know you need to convert your NSImages to CGImageRefs first since the content property cannot be set with an NSImage. Let me know if you need clarification.

-Matt


On Oct 31, 2008, at 10:51 AM, Jeshua Lacock wrote:


Hello,

I think I must be missing something obvious. I have looked over all of the CoreAnimation documentation, and I don't see a convenient way to flip through frames.

Basically I have an NSArray populated with 45 NSImages. I just want to flip through them. Can anyone offer a recommendation?


Thank you,

Jeshua Lacock
Founder/Programmer
3DTOPO Incorporated
<http://3DTOPO.com>
Phone: 877.240.1364

_______________________________________________

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: Simple Flipbook Animation?
      • From: Jeshua Lacock <email@hidden>
References: 
 >Simple Flipbook Animation? (From: Jeshua Lacock <email@hidden>)

  • Prev by Date: Re: A way to disable all tooltips in an Application?
  • Next by Date: NSNetService won't resolve
  • Previous by thread: Re: Simple Flipbook Animation?
  • Next by thread: Re: Simple Flipbook Animation?
  • Index(es):
    • Date
    • Thread