Re: TableView doesn't show alternating colors upon load
Re: TableView doesn't show alternating colors upon load
- Subject: Re: TableView doesn't show alternating colors upon load
- From: Larry Fransson <email@hidden>
- Date: Tue, 23 Nov 2004 10:05:18 -0800
On Nov 23, 2004, at 00:01, Ron Ballesteros wrote:
In my awakeFromNib, I use [tableView
setUsesAlternatingRowBackgroundColors: YES] and I still start off
without the alternating row background color. What surprises me is
that using [tableView reloadData]; actually causes the alternating row
background colors to show upon load.
I must be missing something very fundamental but I can't seem to
figure out why my table view doesn't show the alternating row
background color upon load when there is no data to show to begin
with. Am I missing something?
I don't think you're missing anything. I have noted the same behavior.
That's just the way it works. It may or may not be a bug. You can
always file a bug report if it really bugs you. Calling -reloadData on
an empty table doesn't take a lot of work for the CPU, so that seems a
fairly reasonable and simple workaround to me.
Larry Fransson
Seattle, WA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden