• 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: Alternating row colors in a table view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alternating row colors in a table view?


  • Subject: Re: Alternating row colors in a table view?
  • From: Jerry LeVan <email@hidden>
  • Date: Tue, 24 Feb 2004 11:07:23 -0500

Thanks, that certainly did the trick!, I tried mamasan and google...Is this
documented somewere?

==Jerry

On Feb 24, 2004, at 11:00 AM, Robert Martin wrote:

Inside the TableView method:

- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex

put the following line of code:

[[aTableColumn dataCell] setDrawsBackground:NO];

Should do the trick!


On Feb 24, 2004, at 10:43 AM, Jerry LeVan wrote:

Hi,
I am working on yet another (postgresql) data base browser. What magic to I have to use to
ensure that the row colors actually alternate when data is loaded?

The program does dynamically adds and deletes columns and I keep setting
[tableView setUsesAlternatingRowBackgroundColors:YES];
whenever I add/delete columns but it appears that for most columns with data
that the background appears to be white.

Is it possible to change the default blue color?

Thanks,

Jerry
_______________________________________________
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.
_______________________________________________
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: Alternating row colors in a table view?
      • From: j o a r <email@hidden>
References: 
 >Alternating row colors in a table view? (From: Jerry LeVan <email@hidden>)
 >Re: Alternating row colors in a table view? (From: Robert Martin <email@hidden>)

  • Prev by Date: Re: Alternating row colors in a table view?
  • Next by Date: Colored pill-shape background in NSTableView row
  • Previous by thread: Re: Alternating row colors in a table view?
  • Next by thread: Re: Alternating row colors in a table view?
  • Index(es):
    • Date
    • Thread