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
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
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