Re: Button Text Color
Re: Button Text Color
- Subject: Re: Button Text Color
- From: Seth Willits <email@hidden>
- Date: Tue, 29 Jul 2003 18:39:46 -0700
On Tuesday, July 29, 2003, at 03:01 PM, Andreas Mayer wrote:
Am Dienstag, 29.07.03 um 22:50 Uhr schrieb Seth Willits:
From the looks of it, there's no way to change a NSButton's text
color. More specifically, that of a switch and radio button.
NSAttributedString *coloredString;
coloredString = [[NSAttributedString alloc] initWithString:@"Test"
attributes:[NSDictionary dictionaryWithObject:[NSColor redColor]
forKey:NSForegroundColorAttributeName] ];
[checkBox setTitle:coloredString];
Works for me.
Ahhh... wonder why they didn't implement setTextColor methods like in
NSTextField.
Thanks guys!
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine -
http://www.rbdeveloper.com
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"If God did not exist, it would be necessary to invent Him."
-- Voltaire
------------------------------------------------------------------------
---
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.