Re: Animated button
Re: Animated button
- Subject: Re: Animated button
- From: "I. Savant" <email@hidden>
- Date: Tue, 26 Feb 2008 10:57:51 -0500
> I've tried with a animated gif, unfortunately when pressed it doesn't
> start the animation.
That's because NSButtonCell really doesn't have the ability to
animate an image on its own. The simplest setup is to use NSTimer to
periodically 'advance' the frame of your animation by setting a new
button image. Be reasonable with frame rate (ie, your timer interval),
though. :-)
--
I.S.
_______________________________________________
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