Don't rely on the finalize method, it may or may not be called.
Take a step back and think about why you want 'MVC'...hopefully the answer includes things like making your code more...
Type: Posts; User: copeg
Don't rely on the finalize method, it may or may not be called.
Take a step back and think about why you want 'MVC'...hopefully the answer includes things like making your code more...
I'm not following: if all references to the Model are gone, this would mean the view would not longer hold a reference and that reference would have to be removed (at which point you know when the...
Use your already implemented Observer - when the model is 'destroyed', fire the listeners to notify them of the event. How you go about doing this in detail is up to the details of your code (in...