• 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: Ron Ballesteros <email@hidden>
  • Date: Tue, 23 Nov 2004 15:26:21 -0800

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.

That is what I assumed. I guess I'll have to stick to my workaround. I'll file a bug report if no one has else reported it.
Thanks
rb
On Nov 23, 2004, at 10:05 AM, Larry Fransson wrote:



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.


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

_______________________________________________ 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
References: 
 >TableView doesn't show alternating colors upon load (From: Ron Ballesteros <email@hidden>)
 >Re: TableView doesn't show alternating colors upon load (From: Larry Fransson <email@hidden>)

  • Prev by Date: bindings, NSTableView and overriding drawRow
  • Next by Date: Re: Button doesn't respond in a modal sheet created from window NIB
  • Previous by thread: Re: TableView doesn't show alternating colors upon load
  • Next by thread: NSAttributedString attribues misbehaving
  • Index(es):
    • Date
    • Thread