Re: Alternating row colors in a table view?
Re: Alternating row colors in a table view?
- Subject: Re: Alternating row colors in a table view?
- From: Jerry LeVan <email@hidden>
- Date: Tue, 24 Feb 2004 11:07:23 -0500
Thanks, that certainly did the trick!, I tried mamasan and google...Is
this
documented somewere?
==Jerry
On Feb 24, 2004, at 11:00 AM, Robert Martin wrote:
Inside the TableView method:
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
put the following line of code:
[[aTableColumn dataCell] setDrawsBackground:NO];
Should do the trick!
On Feb 24, 2004, at 10:43 AM, Jerry LeVan wrote:
Hi,
I am working on yet another (postgresql) data base browser. What
magic to I have to use to
ensure that the row colors actually alternate when data is loaded?
The program does dynamically adds and deletes columns and I keep
setting
[tableView setUsesAlternatingRowBackgroundColors:YES];
whenever I add/delete columns but it appears that for most columns
with data
that the background appears to be white.
Is it possible to change the default blue color?
Thanks,
Jerry
_______________________________________________
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.
_______________________________________________
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.