Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Update and Delete listeners
Replies: 3   Last Post: Jul 1, 2013 5:47 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 17,944
Registered: 12/7/04
Re: Update and Delete listeners
Posted: Jun 28, 2013 11:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



"kees de Kapper" <kees_de_kapper@hotmail.com> wrote in message
news:kqk6jm$on1$1@newscl01ah.mathworks.com...
> 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.

http://www.mathworks.com/help/matlab/matlab_oop/handle-class-destructors.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.