Re: Alternate row coloring
Re: Alternate row coloring
- Subject: Re: Alternate row coloring
- From: Brian Webster <email@hidden>
- Date: Thu, 6 Nov 2003 11:08:38 -0600
The problem here is probably that the text field cell being used to
draw the table columns you are creating is drawing its background over
the background of the table rows. To turn this off, try
[[myTableColumn dataCell] setDrawsBackground:NO];
On Nov 6, 2003, at 10:17 AM, John Nairn wrote:
I turned on alternate row coloring, but only empty rows have alternate
colors. All rows with text in the cells have white background although
alternate rows have colored border around the text which looks more
like a grid rather than the actual background coloring that appears in
empty rows.
This particular table is frequently reset in code to show different
types of data. The reseting involves discarding all columns and
creating new ones. Currently the columns are set to prevent editing.
In the future some might be editable. The NSTableView object remains
and only empty rows alternate background color.
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.eng.utah.edu/~nairn
_______________________________________________
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.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.