• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Button Text Color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Button Text Color (From: Seth Willits <email@hidden>)

  • Prev by Date: Scrollers not available in TableView
  • Next by Date: Re: Memory Management
  • Previous by thread: Re: Button Text Color
  • Next by thread: Re: Button Text Color
  • Index(es):
    • Date
    • Thread