"kees de Kapper" <email@example.com> wrote in message news:firstname.lastname@example.org... > Hi All, > > I have been playing a little with events and listeners and came up with a > usable implementation to update my object, etc. However, what I would like > to have as well, is a listener of the event that the object is (going to > be) destroyed/deleted. I would like to have the possibility to clean up > several dependencies just before deletion. > > I cannot find some an event like 'Delete' or what so ever. Have I missed > something.
Create a DELETE method for your object. Clean up the dependencies in that method.