Re: Button Text Color
Re: Button Text Color
- Subject: Re: Button Text Color
- From: Andreas Mayer <email@hidden>
- Date: Wed, 30 Jul 2003 00:01:18 +0200
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.
bye. Andreas.
_______________________________________________
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.