# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1318156364 0 # Node ID dc8ea09605f7103bcf1990610d64882412598d2e # Parent e16e7c51b6c74446be386b1a284264939f10607a Can't set the background on Image cells apparently on Mac... Filter them out for now... may need to switch to using DWImageAndTextCell for those too. diff -r e16e7c51b6c7 -r dc8ea09605f7 mac/dw.m --- a/mac/dw.m Sun Oct 09 10:24:21 2011 +0000 +++ b/mac/dw.m Sun Oct 09 10:32:44 2011 +0000 @@ -1593,26 +1593,29 @@ NSImage *img = [browsercell image]; [bcell setImage:img]; } - /* Handle drawing alternating row colors if enabled */ - if ((row % 2) == 0) - { - if(evencolor) - { - [bcell setDrawsBackground:YES]; - [bcell setBackgroundColor:evencolor]; + if([cell isKindOfClass:[NSTextFieldCell class]]) + { + /* Handle drawing alternating row colors if enabled */ + if ((row % 2) == 0) + { + if(evencolor) + { + [bcell setDrawsBackground:YES]; + [bcell setBackgroundColor:evencolor]; + } + else + [bcell setDrawsBackground:NO]; } else - [bcell setDrawsBackground:NO]; - } - else - { - if(oddcolor) - { - [bcell setDrawsBackground:YES]; - [bcell setBackgroundColor:oddcolor]; - } - else - [bcell setDrawsBackground:NO]; + { + if(oddcolor) + { + [bcell setDrawsBackground:YES]; + [bcell setBackgroundColor:oddcolor]; + } + else + [bcell setDrawsBackground:NO]; + } } } -(void)editCell:(id)input at:(int)row and:(int)col