Re: Conditionally formatting cells in an NSTableView
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.