Unload MVC classes
Last updated at 3:07 am UTC on 18 December 2021
Needs to be tested with current 5.3 release of Squeak and then this page needs to be rewritten.
Note that the problems MVC had have been fixed.
http://lists.squeakfoundation.org/pipermail/squeak-dev/2010-February/144305.html
David T. Lewis lewis at mail.msen.com
Mon Feb 15 04:35:52 UTC 2010
Previous message: [squeak-dev] The Trunk: KernelTests-dtl.139.mcz
Next message: [squeak-dev] Re: MVC now reloadable in trunk
There are a few rough edges, but it is now reasonably safe to unload and
reload MVC in Squeak trunk.
Unloading:
Smalltalk zapMVCprojects.
(MCPackage named: 'ToolBuilder-MVC') unload.
(MCPackage named: 'ST80') unload.
ScheduledControllers := nil.
Smalltalk garbageCollect.
Unloading still works fine in Squeak 5.3 but does not remove the category ST80Tests. It does not remove all the menu entries to create a 'MVC' project thus causing the image to freeze if such an entry is chosen.
Reloading:
Load package ST80
Load package ToolBuilder-MVC
Evaluate "MVCToolBuilder compileAll".
Issues:
- MVCToolBuilder needs to be recompiled after reloading. I have not yet found the reason, but something still needs to be fixed here.
- MVC itself is still badly broken, and has been since about Squeak 3.8. Nothing that I did changes that.
- The new methods in category "editors" in class Project should probably be moved to UIManager.
- All senders of Project>>dispatchTo:addPrefixAndSend:withArguments: should be updated to use ToolBuilder, and the #dispatchTo:addPrefixAndSend:withArguments: mechanism should be removed.
Dave
Note: There have been fixes to MVC since 2010, but there are still problems.