To correctly implement window closing and saving I would recommend that each model provide a mechanism to see how many window are currently open on that model and whether there are any unsaved changes. These can be used by your controller code on window closing events so that you can take appropriate action as in item 3.
In trying to identify unique models or the same model it is recommended that you always use a file's absolute path name. Otherwise you will have a hard time identifying when two files represent the same model.
|