Article View: comp.windows.news
Article #441Re: three NeWS / OpenWindows 3 questions
From: Pat Lashley
Date: Sat, 29 Aug 1992 17:40
Date: Sat, 29 Aug 1992 17:40
46 lines
2074 bytes
2074 bytes
In article 92Aug20161511@karikukko.cs.tut.fi, ks@cs.tut.fi (Syst{ Kari) writes:
>In article <1992Aug20.034650.17692@sq.sq.com> lee@sq.sq.com (Liam R. E. Quin) writes:
>
> [1] Can I access X Defaults from a NeWS-only program?
>
>The followind code reads all DisCo.* resources and makes
> /resource_name resource_value def
>
>/DefineResources { % string string =>
>
>} def
>
>/GetRes { % string =>
> /GetPropertyString DefaultsService send {
> DefineResources
> } if
>} def
>
>(DisCo.) GetRes
------------ WARNING !!! WARNING !!! WARNING !!! WARNING ----------------
The above code uses an undocumented and -OBSOLETE- version of the Defaults
Service. OpenWindows 3.0.1 (packaged with Solaris 2) has replaced it with
a documented mechansim which provides capabilities much closer to those
availiable to X programs. The above code will cause a PostScript dump on
OW 3.0.1 or later.
(We intentionally didn't document the OW3.0 version because we recognized
that it was inadequate, and would need to be re-written.)
If you have access to the 3.0.1 PS files, you should be able to extract
the DefaultsService from them, rename it to avoid comflict with the 3.0
version and use them in your program with a 3.0 server. (You can't just
replace the 3.0 version without grovelling through the entire toolkit, and
the demos to make sure that you've changed all of the references to use
the new API.)
-Pat
---
PMLashley plashley@Sun.COM SunSoft:NeWS/TNT
"Those who do not know NeWS are doomed to recreate it - badly."
Technical Details
Message-ID:
<l9vdkkINNt22@exodus.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!bodacia!patlReferences:
<KS.92Aug20161511@karikukko.cs.tut.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!bodacia!patl From: patl@bodacia.eng.sun.com (Pat Lashley) Newsgroups: comp.windows.news Subject: Re: three NeWS / OpenWindows 3 questions Date: 29 Aug 1992 17:40:36 GMT Organization: Sun Microsystems Lines: 47 Distribution: world Message-ID: <l9vdkkINNt22@exodus.Eng.Sun.COM> References: <KS.92Aug20161511@karikukko.cs.tut.fi> Reply-To: patl@bodacia.eng.sun.com NNTP-Posting-Host: asimov