• 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: Animated button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Animated button (From: Micha Fuhrmann <email@hidden>)

  • Prev by Date: Re: Spotlight Importer
  • Next by Date: Creating a NSTextField
  • Previous by thread: Animated button
  • Next by thread: Re: Animated button
  • Index(es):
    • Date
    • Thread