• 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: Fredrik Olsson <email@hidden>
  • Date: Tue, 22 Aug 2006 12:36:11 +0200

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

It did.

But the attributed title is ignored if the row is selected, drawing the
title in white. How to override this?

// Fredrik Olsson

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


_______________________________________________
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


References: 
 >Re: Is there a way to change a buttons text color for the title? (From: Tim <email@hidden>)

  • Prev by Date: Re: Providing application resources to a Plugin
  • Next by Date: [SOLVED] How do I open a file with a name like: "Ogg/OpenAL"?
  • Previous by thread: Re: Is there a way to change a buttons text color for the title?
  • Next by thread: Category method "selector not recognized"
  • Index(es):
    • Date
    • Thread