sl11@prism.gatech.EDU (LIEBESKIND,SUSAN H) (04/30/91)
I have a number of resources defined on an object "ErrorHandler" in my
application. The application is associated with a world whose name is
currently called "TestApp". The class name for the ErrorHandler is
"ErrorHandler".
--------
I find that if I configure the resource in my .Xdefaults file as
TestApp*myResource: xyzzy
then the call of GetAttribute("myResource") inside the class initialization
for the objects of class ErrorHandler works just fine. The value xyzzy
is retrieved.
---------
But, if I specify the resource more specifically with the class name
TestApp*ErrorHandler*myResource: xyzzy
then GetAttribute("myResource") doesn't find anything.
---------
By all reports this should work. What's wrong?
Thanks.
Susan Liebeskind
ENVIRONMENT : Apollo DN3500, Domain/OS SR 10.2, X11R3,
InterViews 2.6 with patches 1-12 applied.
--
LIEBESKIND,SUSAN H
Georgia Tech Research Institute, GTRI/CSITL, Atlanta Georgia, 30332
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!sl11
Internet: sl11@prism.gatech.edulinton@marktwain.rad.sgi.com (Mark Linton) (04/30/91)
In article <27620@hydra.gatech.EDU>, sl11@prism.gatech.EDU (LIEBESKIND,SUSAN H) writes: |> I have a number of resources defined on an object "ErrorHandler" in my |> application. The application is associated with a world whose name is |> currently called "TestApp". The class name for the ErrorHandler is |> "ErrorHandler". |> |> -------- |> |> I find that if I configure the resource in my .Xdefaults file as |> |> TestApp*myResource: xyzzy |> |> then the call of GetAttribute("myResource") inside the class initialization |> for the objects of class ErrorHandler works just fine. The value xyzzy |> is retrieved. |> |> --------- |> |> But, if I specify the resource more specifically with the class name |> |> TestApp*ErrorHandler*myResource: xyzzy |> |> then GetAttribute("myResource") doesn't find anything. You should only call GetAttribute in class::Reconfig, not the constructor. Defaults can't be known until your interactor is attached to a display (world).