Re: Undo architecture advice needed

2009-10-09 Thread David Hirsch
Thanks. For the second time on this list, I have forgotten that bindings work through setters/getters, rather than directly on the object's variables. -Dave On Oct 9, 2009, at 11:07 AM, Kai Brüning wrote: Hello Dave, undo/redo is a model operation and should be handled inside the model.

Re: Undo architecture advice needed

2009-10-09 Thread Kai Brüning
Hello Dave, undo/redo is a model operation and should be handled inside the model. That is, I wouldn’t pick your suggestions 1) or 2), because they both do not observe (in a general case, not KVO) the model to generate undo information. If I understand you correctly, the phase objects are

Undo architecture advice needed

2009-10-09 Thread David Hirsch
Hello list- I have a document-based application. Each document has a NSArray of phases. Phases is an NSArrayController created in IB and bound to FIle's Owner.phases. When a given phase is selected in the NSTableView (bound to phase controller), then its properties show up in a set of