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

Re: NSTableView text color question


  • Subject: Re: NSTableView text color question
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 1 Oct 2003 17:57:09 -0700

On Oct 1, 2003, at 5:18 AM, Mike Brinkman wrote:

Somehow, I need to be able to tell the table view "if field x in row y is less than z, then make the text red."

You mentioned initially that this is a learning exercise; you might consider implementing this functionality using a formatter instead of using the table view delegate method...
<http://developer.apple.com/documentation/Cocoa/Conceptual/ DataFormatting/Tasks/CreatingACustomFormatter.html>
In particular "attributedStringForObjectValue:withDefaultAttributes:".

mmalc
_______________________________________________
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: 
 >Re: NSTableView text color question (From: Mike Brinkman <email@hidden>)

  • Prev by Date: NS_DURING and CodeWarrior MSL
  • Next by Date: German Toolbars & special characters
  • Previous by thread: Re: NSTableView text color question
  • Next by thread: labelling some NSString objects, without making a new class?
  • Index(es):
    • Date
    • Thread