Changing the "on" color of an NSButton
Changing the "on" color of an NSButton
- Subject: Changing the "on" color of an NSButton
- From: Eric Ridge <email@hidden>
- Date: Sat, 19 Jan 2002 14:17:23 -0500
Hello! I've searched the archives and Apple's developer site for a few
days trying to find an answer. All I found is that the question hasn't
even been asked!
Question:
Is it possible to change the "on" color of a Round On/Off (or any)
Button?
I still want the button to be gray when "off", but when clicked "on",
I'd like it to be red or purple or green or something. Nothing in the
NSButton/Cell object tree jumps out as the thing to do. I suspect I'll
have to end up subclassing NSButtonCell so I can draw it myself... but I
really don't want to do that just to change the color.
Any push in the right direction will be greatly appreciated!
Thanks in advance,
eric
PS, is it appropriate to ANNOUNCE new (possibly open-source) Cocoa
applications here? I'm working on something which I believe will be
very useful.