FROM : Jeremy Dronfield
DATE : Tue Oct 15 21:47:53 2002
On Saturday, October 12, 2002, at 07:06 pm, Jonathan Jackel wrote:
> - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
> forTableColumn:(NSTableColumn *)aTableColumn row:(int)aRowIndex
> {
> if ((aRowIndex % 2) == 0)
> {
> [aCell setDrawsBackground: YES];
> [aCell setBackgroundColor: [NSColor colorWithCalibratedRed: 0.90
> green:
> 0.90
> blue:
> 0.80
> alpha:
> 1.0]];
> }
> else
> {
> [aCell setDrawsBackground: NO];
> [aCell setBackgroundColor: [NSColor whiteColor]];
> }
> }
Is there a way to do this if the data cell for one of the table columns
is an NSImageCell?
-Jeremy
========================================
jeremy.<email_removed> // <email_removed>
The Alchemy Pages:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Tue Oct 15 21:47:53 2002
On Saturday, October 12, 2002, at 07:06 pm, Jonathan Jackel wrote:
> - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
> forTableColumn:(NSTableColumn *)aTableColumn row:(int)aRowIndex
> {
> if ((aRowIndex % 2) == 0)
> {
> [aCell setDrawsBackground: YES];
> [aCell setBackgroundColor: [NSColor colorWithCalibratedRed: 0.90
> green:
> 0.90
> blue:
> 0.80
> alpha:
> 1.0]];
> }
> else
> {
> [aCell setDrawsBackground: NO];
> [aCell setBackgroundColor: [NSColor whiteColor]];
> }
> }
Is there a way to do this if the data cell for one of the table columns
is an NSImageCell?
-Jeremy
========================================
jeremy.<email_removed> // <email_removed>
The Alchemy Pages:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Terry Smyth | Oct 11, 15:56 | |
| Matthew Formica | Oct 12, 00:39 | |
| Jonathan Jackel | Oct 12, 20:06 | |
| Jeremy Dronfield | Oct 15, 21:47 | |
| j o a r | Oct 15, 22:09 | |
| Jeremy Dronfield | Oct 16, 18:50 |






Cocoa mail archive

