• 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: Is there a way to change a buttons text color for the title?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to change a buttons text color for the title?


  • Subject: Re: Is there a way to change a buttons text color for the title?
  • From: Tim <email@hidden>
  • Date: Fri, 18 Aug 2006 19:19:24 +0200

You could use NSButton::setAttributedTitle with an NSAttributedString.
Hope this helps.

Tim


Is there a way to change a buttons text color for the title?

I have a column with NSButtonCells in a table, some lines are to be
marked as bold (no problem), and some lines are to be marked with red to
alert the user of the really serious stuff. Most columns uses a
NSTextFieldCell so setTextColor: works. One column with a checkbox using
NSButtonCell stands out in the crowd though.


// Fredrik Olsson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Is there a way to change a buttons text color for the title?
      • From: Fredrik Olsson <email@hidden>
  • Prev by Date: Re: Programmatically replace bound objects
  • Next by Date: Re: What's the fastest way to get icons for file/folders?
  • Previous by thread: Printing & page size
  • Next by thread: Re: Is there a way to change a buttons text color for the title?
  • Index(es):
    • Date
    • Thread