I have an objects (myObject)inherited from GoObject. It has some observers that inherits from GoObject as well.How can I copy/paste the myObject, and make the pasted new myObject has a copy of the observers of old myObject?
I assume those observers aren’t in the Selection when the EditCopy occurs, since otherwise you wouldn’t be asking this question.
Basically you can override GoObject.CopyObject to call the base method and then make copies of whatever objects you want. You’ll need to figure out how to manage those additionally copied objects–if there is any sharing of those observers and who should own them.
You should call GoCopyDictionary.Copy to make a copy of an object in your GoObject.CopyObject override.