Re: Simple Flipbook Animation?
Re: Simple Flipbook Animation?
- Subject: Re: Simple Flipbook Animation?
- From: douglas welton <email@hidden>
- Date: Fri, 31 Oct 2008 14:08:42 -0400
Jeshua,
<disclaimer> I have no idea what you are actually doing in your code,
so any advice i give below is pure speculation</disclaimer>
Let's say you have an array of NSImages and an NSImageView to display
them in.
I would create the animation, set a collection of progress marks, and
use the delegate method -animation:didReachProgressMark: to set the
NSImageView to the appropriate NSImage for the progress mark.
if you want to use CALayers, you'll need to convert your NSImages to
CGImageRefs, set up your animation, and then use the delegate method
to set the content property of the target layer.
hope that helps,
regards,
douglas
On Oct 31, 2008, at 1:48 PM, Jeshua Lacock wrote:
On Oct 31, 2008, at 11:07 AM, douglas welton wrote:
Did you take a look at using the NSAnimation class? The delegate
would be a good place to swap up one image for another in a display
view.
Thanks for your help Douglas.
Yes, that was the first class I looked at.
I guess it is not clear to me how to swap images with it. Most of
the sample code I have seen shows a start frame and end frame with a
start value and end value, then creates the frames in between.
Do you know where there is any sample code?
Thanks,
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