Page 1 of 1

Identify and call back to "parent" object.

Posted: 2 Jan 2019 6:25
by daveplummermd
Guys
Is it possible to identify the calling object and callback back to it from a created object?

Example:
1) From within Taskwindow create object O1 that belongs to class C1.
2) From within Taskwindow create object O2 that belongs to different class C2
now...
3) Both O1 and O2 each create objects O3 and O4, both belonging to the same 3rd class, C3.

I am trying to callback from O3 and O4 to the correct "parent" object, but iI need to identify that parent as either O1 or O2.

I have a cumbersome method using expanded new() and display() that requires additional argument passing, but I suspect there is a more elegant, direct method.

Thanks in advance

Dave

Re: Identify and call back to "parent" object.

Posted: 2 Jan 2019 12:47
by Thomas Linder Puls
I think it sounds like a good way to do it.