• 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: Odd-Even backgrounds for NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd-Even backgrounds for NSTableView


  • Subject: Re: Odd-Even backgrounds for NSTableView
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 21 Jan 2003 18:50:20 +0100

On Tuesday, January 21, 2003, at 05:31 PM, Jeff LaMarche wrote:

A very common way of displaying table data is to alternate the background colors of every other row, for example, even rows might have a light blue background and odd rows might have white.

This is easy enough to implement - I can think of a few ways of doing it, with the first thought that came to my mind was to use the tableView:willDisplayCell:forTableColumn:row: delegate notification to set the background color.

...but it seems like there must be a setting for this somewhere since it is such a commonly used table feature. I can't seem to find anything in the doc or headers to indicate that this functionality is already built in.

No settings, just source code (for instance the one in the Table sample code available on Karelia.com). Search the archive for the exact URL.
_______________________________________________
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: 
 >Odd-Even backgrounds for NSTableView (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: Capturing every keypress in an NSTextView
  • Next by Date: Re: NSTextView and font sizes?
  • Previous by thread: Odd-Even backgrounds for NSTableView
  • Next by thread: drawPageBorderWithSize Pagination question
  • Index(es):
    • Date
    • Thread