• 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: Conditionally formatting cells in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditionally formatting cells in an NSTableView


  • Subject: Re: Conditionally formatting cells in an NSTableView
  • From: j o a r <email@hidden>
  • Date: Tue, 26 Nov 2002 20:06:06 +0100

You can either use the "willDisplayCell:" table view delegate method and set the properties on the cell directly, or provide an attributed string to the the "objectValueForTableColumn:" data source method. It's all up to you really. I think I would have preferred to use "willDisplayCell:" since I wouldn't have to create a lot of attributed strings... :)

j o a r

On Tuesday, Nov 26, 2002, at 15:56 Europe/Stockholm, Tamara L. Cravit wrote:

What I'd like to do next is to conditionally format some cells to be in
bold, based on whether or not a particular data element is nil. Can I do
this in the NSTableDataSource "aTable objectValueForTableColumn:row:"
method, or is there somewhere better to do this?
_______________________________________________
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.

  • Prev by Date: RE: Vermont Recipes vs Building Cocoa Applications
  • Next by Date: Re: Instantly re-display buttons?
  • Previous by thread: Conditionally formatting cells in an NSTableView
  • Next by thread: Re: Conditionally formatting cells in an NSTableView
  • Index(es):
    • Date
    • Thread