Re: Changing the "on" color of an NSButton
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