Re: ColoredRowTableView
Re: ColoredRowTableView
- Subject: Re: ColoredRowTableView
- From: Jeremy Dronfield <email@hidden>
- Date: Tue, 15 Oct 2002 20:47:53 +0100
On Saturday, October 12, 2002, at 07:06 pm, Jonathan Jackel wrote:
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)aRowIndex
{
if ((aRowIndex % 2) == 0)
{
[aCell setDrawsBackground: YES];
[aCell setBackgroundColor: [NSColor colorWithCalibratedRed: 0.90
green:
0.90
blue:
0.80
alpha:
1.0]];
}
else
{
[aCell setDrawsBackground: NO];
[aCell setBackgroundColor: [NSColor whiteColor]];
}
}
Is there a way to do this if the data cell for one of the table columns
is an NSImageCell?
-Jeremy
========================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.