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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to