Re: Odd-Even backgrounds for NSTableView
Re: Odd-Even backgrounds for NSTableView
- Subject: Re: Odd-Even backgrounds for NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 21 Jan 2003 18:50:20 +0100
On Tuesday, January 21, 2003, at 05:31 PM, Jeff LaMarche wrote:
A very common way of displaying table data is to alternate the
background colors of every other row, for example, even rows might
have a light blue background and odd rows might have white.
This is easy enough to implement - I can think of a few ways of doing
it, with the first thought that came to my mind was to use the
tableView:willDisplayCell:forTableColumn:row: delegate notification to
set the background color.
...but it seems like there must be a setting for this somewhere since
it is such a commonly used table feature. I can't seem to find
anything in the doc or headers to indicate that this functionality is
already built in.
No settings, just source code (for instance the one in the Table sample
code available on Karelia.com). Search the archive for the exact URL.
_______________________________________________
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.