Thanks,
That sure helped make my text red (in awakeFromNib, I added: [[self cell] setAttributedTitle:attrStr]; But, I lose the ability to control the button background: [[self cell] setBackgroundColor:[NSColor colorWithCalibratedRed:.8 green:.1 blue:.1 alpha:.75]]; Does not work. The docs say it only works with borderless buttons... I've tried the different bezel styles, none of them work. I feel like to really control the drawing, I'd want to subclass NSButtonCell, so I'm still pretty curious to understand why that isn't working.
-Arshad On May 23, 2005, at 1:09 AM, j o a r wrote:
On 23 maj 2005, at 10.04, Arshad Tayyeb wrote:
I'm trying to subclass an NSButton/NSButtonCell so I can get some custom drawing. Really, the only thing I want to do is make the text a different color (say, red).
How about using the "setAttributedTitle:" method of NSButton/*Cell instead of subclassing? Would that work?
j o a r
|