Article View: comp.windows.interviews
Article #32Re: Root superclass for InterViews
From: Andre Mueller
Date: Fri, 30 Oct 1992 13:25
Date: Fri, 30 Oct 1992 13:25
52 lines
2213 bytes
2213 bytes
In article <1992Oct28.220415.7155@exu.ericsson.se>, ebubra@ebu.ericsson.se (Bertil Askelid) writes:
|>
|> For the sake of my application I need to have all InterViews objects
|> be able to tell from which class they were instanciated.
|>
I have the same problem and a bit more:
I need a unique identifier (for instance a char* name) for most InterViews objects.
|> doesn't do such an obviously necessary thing?), I went about it and
|> came up with the easy and obvious solution of letting all the
|> InterViews classes I am working with have a new class called Object
|> (what else) as their common root.
|>
I introduced a new superclass called Ident for only two InterViews classes -
Resource and Window.
The compiler (AT&T 2.1 on a Sparc IPX running SunOs-4.1.2) made no problems
with InterViews 3.1-beta, modified in that way.
|> Minimal change to the InterViews source (just add "public Object" to
|> all classes without a superclass (14 of them in the Interactors based
|> parts of InterViews)). No problem compiling either.
|>
Mark Linton <9207202131.AA20666@marktwain.rad.sgi.com> wrote to a
very similar proposal:
|>I have a different approach in mind that will rely on specifying
|>classes in OMG's IDL (Interface Definition Language). However,
|>I need to do some experimentation before I know exactly how this
|>is going to work.
|> Even though my Object class worked just fine, I ran into memory
|> corruption in other places, that previously worked, so I had to give
|> up.
|>
The same as me.
==========================
Andre' Mueller
Nestler electronics GmbH
D-7630 Lahr/Schwarzwald
Tel: +49(0)7821 284361
E-mail: amr@nestler.uucp
==========================
Technical Details
Message-ID:
<9210301325.AA21138@nestler.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!LURCH.STANFORD.EDU!nestler!amrShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!LURCH.STANFORD.EDU!nestler!amr From: nestler!amr@LURCH.STANFORD.EDU (Andre Mueller) Subject: Re: Root superclass for InterViews Message-ID: <9210301325.AA21138@nestler.uucp> Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Date: Fri, 30 Oct 1992 13:25:28 GMT Lines: 53