• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TableView doesn't show alternating colors upon load
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: TableView doesn't show alternating colors upon load
      • From: Ron Ballesteros <email@hidden>
References: 
 >TableView doesn't show alternating colors upon load (From: Ron Ballesteros <email@hidden>)

  • Prev by Date: Crash when creating instance of class
  • Next by Date: Re: Crash when creating instance of class
  • Previous by thread: TableView doesn't show alternating colors upon load
  • Next by thread: Re: TableView doesn't show alternating colors upon load
  • Index(es):
    • Date
    • Thread