C (171/178)

From:Gabriele Svelto
Date:30 Jul 2000 at 11:06:56
Subject:Re: BOOPSI again & again

Hi Allan,
> It's in "intuition/classes.h" (declared as 'typedef struct IClass {...}
> Class' AFAIRC).

Found it finally ;-)

> You receive an object and a class pointer in your dispatcher, these can
> be used to get the instance data of the object by using the
> INST_DATA(cl, obj)-macro.
>
> Gadget data belonging to your superclass should normally be accessed by
> invoking Get- & SetAttrs() on your own object, but if you want to be
> dirty then I think the object pointer passed to your gadget is
> equivalent with the Gadget pointer (if your object is a Gadget) -- The
> includes should mention more about this, I haven't tried to make use of
> this fact myself...

So to be 'clean' I have to Set/GetAttrs() on the object pointer? Since I am deriving from gadgetclass do I have to use SetGadgetAttrs() instead of SetAttrs()? BTW, when I redefine a method for my subclass I have always to call DoSuperMethod() before my own code or my subclass can stick with my code whithout executing the code of the previous classes? Thanx in advance

Gabriele

--------------------------------------------------------------------<e|-
The Most Expensive Thing You Can Haul Is An Empty Trailer.
http://click.egroups.com/1/5776/1/_/451227/_/964948181/
--------------------------------------------------------------------|e>-