• 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: Changing text color for NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing text color for NSTableView


  • Subject: Re: Changing text color for NSTableView
  • From: j o a r <email@hidden>
  • Date: Mon, 18 Nov 2002 13:14:51 +0100

Implement the "willDisplayCell" delegate method and set colored string to the cell using "setAttributedStringValue". Look in the documentation for NSCell where there is sample code for creating the attributed string with color.

j o a r

On Monday, Nov 18, 2002, at 12:07 Europe/Stockholm, Peter wrote:

I have been looking around archives for changing text color for display in a NSTableView but did not find one. Currently I am using NSString for display (plain black), I like to turn into red or green for highlighting purpose.
_______________________________________________
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: 
 >Changing text color for NSTableView (From: Peter <email@hidden>)

  • Prev by Date: Changing text color for NSTableView
  • Next by Date: Re: Using Gestalt... (Resend)
  • Previous by thread: Changing text color for NSTableView
  • Next by thread: Re: Changing text color for NSTableView
  • Index(es):
    • Date
    • Thread