Hi,
I have a singleton factory object 'Manager' that create objects used by the 'user' which can destroy them.
Is there a way the 'Manager' will be notifyed when the created objects are destroyed?
yes, in the beginning I thought to use the same pattern, but I would like if there was some "automatic" way without the necessity to modify created objects.
Or, for example, a sort of container that hold pointers to these objects and, when they are destroyed, it removes them automatically!