• 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: Changing the "on" color of an NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the "on" color of an NSButton


  • Subject: Re: Changing the "on" color of an NSButton
  • From: Eric Ridge <email@hidden>
  • Date: Mon, 28 Jan 2002 01:56:02 -0500

thanks for the great example.

Unfortunately, the cocoa dev mailing list removed the two attachments
you sent for the source code and header of ColoredButtonCell subclass of
NSButtonCell.

so I noticed. :( I really wish the screenshot would have made it. the buttons look really cool! *grin*


Could you please e-mail me the two files, or e-mail back with a link to
where i can get them.

Yes, I'll email you privately. Don't have a public site to make them available.

<snip>

As far as the throbbing of default buttons that might require setting up
an NSTimer to execute an update method which changes the image of the
button a bit (from light to dark, then dark to light, then light to
dark, etc), a certain number of times per second? Of course you'd have
to add some "sleep time" so the user can see that its throbbing and not
flicking.

Yeah, I actually messed around with this for awhile (too long). I kinda had it working, via an NSThread, but I wasn't happy with it, so I removed it.

I'm not sure how Apple does it. Do they have some kind of central ThrobbingButtonThread that manages all default buttons, or do they do the NSTimer thing (as you suggest) per button?

eric


  • Follow-Ups:
    • Re: Changing the "on" color of an NSButton
      • From: Finlay Dobbie <email@hidden>
References: 
 >Re: Changing the "on" color of an NSButton (From: Esteban <email@hidden>)

  • Prev by Date: Re: Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice)
  • Next by Date: Re: Database Access
  • Previous by thread: Re: Changing the "on" color of an NSButton
  • Next by thread: Re: Changing the "on" color of an NSButton
  • Index(es):
    • Date
    • Thread