• 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: Alternate row coloring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternate row coloring


  • Subject: Re: Alternate row coloring
  • From: Brian Webster <email@hidden>
  • Date: Thu, 6 Nov 2003 11:08:38 -0600

The problem here is probably that the text field cell being used to draw the table columns you are creating is drawing its background over the background of the table rows. To turn this off, try [[myTableColumn dataCell] setDrawsBackground:NO];

On Nov 6, 2003, at 10:17 AM, John Nairn wrote:

I turned on alternate row coloring, but only empty rows have alternate colors. All rows with text in the cells have white background although alternate rows have colored border around the text which looks more like a grid rather than the actual background coloring that appears in empty rows.

This particular table is frequently reset in code to show different types of data. The reseting involves discarding all columns and creating new ones. Currently the columns are set to prevent editing. In the future some might be editable. The NSTableView object remains and only empty rows alternate background color.

------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.eng.utah.edu/~nairn
_______________________________________________
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.


--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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: 
 >Alternate row coloring (From: John Nairn <email@hidden>)

  • Prev by Date: OT: maxproc limit
  • Next by Date: Re: Multiple Views in a Single Drawer??
  • Previous by thread: Re: Alternate row coloring
  • Next by thread: OT: maxproc limit
  • Index(es):
    • Date
    • Thread