Re: Alternate row colors and selection

2008-03-25 Thread Cathy Shive
Hi Ivan, If you want all of the table views in your app to have the same special color scheme, the most reliable way to do this is by adding a category to NSColor and overriding the class method: + (NSArray *)controlAlternatingRowBackgroundColors; to return an array containing the two colors you

Re: Alternate row colors and selection

2008-03-25 Thread Jens Alfke
On 25 Mar '08, at 12:34 AM, Ivan C Myrvold wrote: This works fine for the columns which have NSTextFieldCell, and it also colors the column with the NSButtonCell, but when I select a row, the column with NSButtonCell still have the color as set above, and not the selection color. You could

Alternate row colors and selection

2008-03-25 Thread Ivan C Myrvold
I have an NSOutlineView, where the cells in one of the columns are NSButtonCell. In the delegate method outlineView:willDisplayCell:forTableColumn:item:, I am setting the alternate colors with if ([te isColored]) // even row number [aCell setBackgroundColor:evenColor]; else [aCell set