• 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: NSTableView question (odd / even row colors)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView question (odd / even row colors)


  • Subject: Re: NSTableView question (odd / even row colors)
  • From: Jeff Harrell <email@hidden>
  • Date: Wed, 11 Jun 2003 17:57:23 -0500

It's not actually as much work nor as ugly a hack as you might think. That said, you don't have to do it. Check out iTableView:

http://members.iinet.net.au/~tonyarnold/archives/000015.html

On Wednesday, June 11, 2003, at 04:17 PM, Hannes Friederich wrote:

Hi everybody

I have a question concerning NSTableView. I'd like to have different colors
for odd / even rows. I know that I can use
tableView:willDisplayCell:forTableColumn:row: and setting the cells color
there. But If there are less rows in the data source than the table view can
display at once, the lower part of the view remains in the default
background color. If I look at iTunes, I see that there is a nice separation
between the rows even if there arent any music titles to display. Using the
data source to return the corect number of rows (as many as there is space
for in the view) is a bad solution since I don't think that the data source
has to be responsible for the correct look and feel of the table view. I
fear that I have to subclass NSTableView, but that seems like a lot of work
and a ugly hack to me. Is there any other solution for this problem?

Thanks in advance
Hannes
_______________________________________________
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.



--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.

References: 
 >NSTableView question (odd / even row colors) (From: Hannes Friederich <email@hidden>)

  • Prev by Date: Re: NSTableView question (odd / even row colors)
  • Next by Date: Scanner bug
  • Previous by thread: Re: NSTableView question (odd / even row colors)
  • Next by thread: Re: Which window is good?
  • Index(es):
    • Date
    • Thread