# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1301000725 0 # Node ID 746cdd753e7a5e0c072edfd1dce9c8a81aab9bde # Parent 1ef0f4c03c14d952fcf8ff018c60b4e58e0179a2 Added coloring support for the Container/Tree/Listbox controls. diff -r 1ef0f4c03c14 -r 746cdd753e7a mac/dw.m --- a/mac/dw.m Thu Mar 24 15:51:09 2011 +0000 +++ b/mac/dw.m Thu Mar 24 21:05:25 2011 +0000 @@ -1004,6 +1004,7 @@ NSMutableArray *data; NSMutableArray *types; NSPointerArray *titles; + NSColor *fgcolor; int lastAddPoint, lastQueryPoint; id scrollview; } @@ -1029,6 +1030,7 @@ -(void)setLastQueryPoint:(int)input; -(void)clear; -(void)setup; +-(void)setForegroundColor:(NSColor *)input; -(void)doubleClicked:(id)sender; -(void)tableView:(NSTableView*)tableView mouseDownInHeaderOfTableColumn:(NSTableColumn *)tableColumn; -(void)selectionChanged:(id)sender; @@ -1173,6 +1175,20 @@ titles = [[NSPointerArray pointerArrayWithWeakObjects] retain]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selectionChanged:) name:NSTableViewSelectionDidChangeNotification object:self]; } +-(void)setForegroundColor:(NSColor *)input +{ + int z, count = (int)[tvcols count]; + + fgcolor = input; + [fgcolor retain]; + + for(z=0;z