4-4 SOMobjects Base Toolkit Programmer’s Reference
Manual
Example
The following figure shows an invocation of “myMethod” on “myObject”. Because
“myObject” is an instance of a class whose metaclass is a subclass of SOMMBeforeAfter,
“myMethod” is followed by an invocation of sommAfterMethod (note the user does not
actually code the method). The adjacent figure illustrates the meaning of the parameters to
sommAfterMethod.
.
.
.
.
.
.
An Example of Using sommAfterMethod
sommAfterMethod(receiver, ev, myObject, ...)
myMethod(myObject,...)
Legend:
Subclass ofInstance of
Metaclass Class Ordinary Object
SOMMBeforeAfter
aMetaclass
“myObject”
“receiver”
Original Class
SOMMBeforeAfter
Related Information
Methods: sommBeforeMethod
Kommentare zu diesen Handbüchern