|
From: | Nicolas Roard |
Subject: | Background colors in NSTableView/NSOutlineView/NSBrowser |
Date: | Fri, 20 Aug 2004 19:32:25 +0100 |
Hi,I needed to set the color of thoses widgets separately (ie, using another color than just controlBackgroundColor)
I added 4 colors to NSColor system list and patched the widgets to use them.
the colors arerowTextColor, selectedRowTextColor, rowBackgroundColor and selectedRowBackgroundColor.
Actually only the *BackgroundColor are used. Here is the patches: <diff-NSBrowser.m><diff-NSBrowserCell.m><diff-NSColor.h><diff-NSColor.m><diff-NSTableView.m>Though, it could perhaps be interesting to modify NSColor in order to put theses colors in the "color extensions list"
used by NSToolbar. -- Nicolas Roard
diff-NSBrowser.m
Description: Text document
diff-NSBrowserCell.m
Description: Text document
diff-NSColor.h
Description: Text document
diff-NSColor.m
Description: Text document
diff-NSTableView.m
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |