Handling undo and edit flag on window with several model objects
        Posted  
        
            by Rui Pacheco
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Rui Pacheco
        
        
        
        Published on 2010-03-16T17:48:37Z
        Indexed on 
            2010/03/16
            17:51 UTC
        
        
        Read the original article
        Hit count: 362
        
Hi,
I've a window that will hold several instances of a model object, listed in a table. The model object is updated using a text view. What is the best way to keep the edit flag and undo manager in synch with the content of the different model objects?
I'm thinking creating an instance of the undo manager on the model object and manually set the undo manager for the text view every time the user choses a new model object. Does the undo manager also handle the edited flag?
© Stack Overflow or respective owner