somMergeInto - Remarks

The somMergeInto method transfers the SOMClassMgr registry information from one object to another. The target object is required to be an instance of SOMClassMgr or one of its subclasses. At the completion of this operation, the target object can function as a replacement for the receiver. The receiver object (which is then in a newly uninitialized state) is placed in a mode where all methods invoked on it will be delegated to the target object. If the receiving object is the instance pointed to by the global variable SOMClassMgrObject, then SOMClassMgrObject is reassigned to point to the target object.

Subclasses of SOMClassMgr that override the somMergeInto method should transfer their section of the class manager object from the target to the receiver, then invoke their parent's somMergeInto method as the final step.

Invoke this method only if you are creating your own subclass of SOMClassMgr. You can invoke somMergeInto from an initializer for your new class manager.


[Back: somMergeInto - Parameters]
[Next: somMergeInto - Original Class]