NSTableView question (odd / even row colors)
NSTableView question (odd / even row colors)
- Subject: NSTableView question (odd / even row colors)
- From: Hannes Friederich <email@hidden>
- Date: Wed, 11 Jun 2003 23:17:26 +0200
Hi everybody
I have a question concerning NSTableView. I'd like to have different colors
for odd / even rows. I know that I can use
tableView:willDisplayCell:forTableColumn:row: and setting the cells color
there. But If there are less rows in the data source than the table view can
display at once, the lower part of the view remains in the default
background color. If I look at iTunes, I see that there is a nice separation
between the rows even if there arent any music titles to display. Using the
data source to return the corect number of rows (as many as there is space
for in the view) is a bad solution since I don't think that the data source
has to be responsible for the correct look and feel of the table view. I
fear that I have to subclass NSTableView, but that seems like a lot of work
and a ugly hack to me. Is there any other solution for this problem?
Thanks in advance
Hannes
_______________________________________________
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.