Nicholas Riley links to iAppViews, code by Evan Jones that apparently demonstrates best practices for alternating background colors in NSTableView and NSOutlineView.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed