🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1030

Re: specifying X resources for properties in IV 2.6

#1030
From: Mark Linton
Date: Tue, 30 Apr 1991 16:34
26 lines
1567 bytes
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).
Technical Details
Message-ID: <1991Apr30.163444.456@fido.wpd.sgi.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!fido.wpd.sgi.com!marktwain.rad.sgi.com!linton
References: <27620@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!elroy.jpl.nasa.gov!decwrl!sgi!shinobu!fido.wpd.sgi.com!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: specifying X resources for properties in IV 2.6
Message-ID: <1991Apr30.163444.456@fido.wpd.sgi.com>
Date: 30 Apr 91 16:34:44 GMT
References: <27620@hydra.gatech.EDU>
Sender: news@fido.wpd.sgi.com (Usenet News Admin)
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
Organization: sgi
Lines: 26