swick@ATHENA.MIT.EDU (Ralph R. Swick) (10/27/88)
> Is it considered bad form (i.e., violating the object-oriented approach) for a > subclass to use XtSetValues to change a parent-class resource value (based on a > local resource)? ... > Since the subclass initializations are performed after the Text initializations ... > This seems tacky. Yes, it's tacky but it really reflects a deficiency in the implementation of the superclass, so unless you're willing to fix up the superclass implementation, I'd overlook it. On principle, however, I can't think of any good reason why a subclass should be discouraged from calling XtSetValues on it's superclass. This is certainly more OOP-ish that directly manipulating the superclass data, which hack all widgets are currently guilty of doing.