Page 1 of 1

Calling OnLeave on RemoveAllModels

Posted: Thu Apr 19, 2012 2:16 pm
by Rado1
This is not really necessary (there is a simple workaround), but I would appreciate if RemoveAllModels calls also OnLeave parts of active ModelStates of the deleted models. I usually use the OnLeave section for "cleaning the stuff" relevant for given model state (eg. deallocating DLL's resources allocated in that model state). This is like overriding of Model's OnRemove (with super() at the end).