Search:

Type: Posts; User: copeg

Search: Search took 0.16 seconds.

  1. Replies
    9
    Views
    1,599

    Re: Killing view of a dead model

    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...
  2. Replies
    9
    Views
    1,599

    Re: Killing view of a dead model

    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...
  3. Replies
    9
    Views
    1,599

    Re: Killing view of a dead model

    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...
Results 1 to 3 of 3