Hi Alexandre,
Thanks for the information. However I'd like to
modify the foreground color of a node, not the background color (as the
blue subclassResponsibility methods in the OB System Browser), and I
found no easy way to do that, i.e.:
| answer |
...
answer do: [: obNode | obNode foregroundColor: Color red ].
^answer
Right now I'm formatting the output this way:
>>name
...
^ Text string: nameString attribute: TextColor red
Cheers,
Hernán
> That's a good usability idea. I will let you know when it's ready,
> right now with the latest OmniBrowser, I see no protocol for
> changing the foreground color of a node in the OBNode hierarchy.
> Perhaps another OB user could tell how to do it?
Easy, just override the method #backgroundColor to return a color.
If you need a complete exemple, then browse the package Moose-
OBBrowser in the Moose SqueakSource project.
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.