Odd-Even backgrounds for NSTableView
Odd-Even backgrounds for NSTableView
- Subject: Odd-Even backgrounds for NSTableView
- From: Jeff LaMarche <email@hidden>
- Date: Tue, 21 Jan 2003 11:31:27 -0500
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.
Jeff
_______________________________________________
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.