[Contents] [index] [Help] [Retrace] [browse <] [Browse >]

The C prototype for a Boopsi dispatcher looks like this:

    ULONG dispatchRKMModel(Class *cl, Object *recvobject, Msg msg);

where cl points to the Class (defined in <intuition/classes.h>) of the
dispatcher, recvobject points to the object that received the message, and
msg is that Boopsi message.  The format of the message varies according to
the method.  The default Boopsi message is an Msg (from
<intuition/classusr.h>):

    typedef struct {
        ULONG MethodID;
    } *Msg;

Boopsi methods that require parameters use custom message structures. The
first field of any message structure is always the method's methodID.
This makes custom messages look like an Msg.  The dispatcher looks at an
incoming message's first field to tell what its method is.  rkmmodelclass
objects respond to several rootclass methods:

om_new
    This method creates a new rkmmodelclass object.  it uses an opset
    structure as its Boopsi message.

om_dispose
    This method tells an object to dispose of itself.  It uses an Msg as
    its Boopsi message.

om_set
    This method tells an object to set one or more of its attribute
    values.  It uses an opset structure as its boopsi message.

om_update
    This method tells an object to update one or more of its attribute
    values.  It uses an opupdate structure as its boopsi message.

om_get
    This method tells an object to report an attribute value.  It uses an
    opget structure as its boopsi message.

om_addtail
    This method tells an object to add itself to the end of an Exec list.
    It uses an opaddtail structure as its boopsi message.

om_remove
    This method tells an object to remove itself from an Exec list.  It
    uses an Msg as its Boopsi message.

om_addmember
    This method tells an object to add an object to its broadcast list.
    It uses an opmember structure as its boopsi message.

om_remmember
    This method tells an object to remove an object from its broadcast
    list.  It uses an opmember structure as its boopsi message.

om_notify
    This method tells an object to broadcast an attribute change to its
    broadcast list.  It uses an opset structure as its boopsi message.

Of these, rkmmodelclass has to process om_new, om_set, om_update, and
OM_GET.

 om_new              om_get                  rkmmodel.c 
 om_set/om_update    making the new class