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

Odd-Even backgrounds for NSTableView


  • Subject: Odd-Even backgrounds for NSTableView
  • From: Jeff LaMarche <email@hidden>
  • Date: Tue, 21 Jan 2003 11:31:27 -0500

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.

Jeff
_______________________________________________
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.

  • Follow-Ups:
    • Re: Odd-Even backgrounds for NSTableView
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: hotkey problem
  • Next by Date: Re: Capturing every keypress in an NSTextView
  • Previous by thread: show another window from one window
  • Next by thread: Re: Odd-Even backgrounds for NSTableView
  • Index(es):
    • Date
    • Thread