Re: Synchronising across multiple NSUndoManager stacks

2008-03-23 Thread Graham Cox
Thanks for the considered reply, Jerry - much appreciated. I hadn't thought of just using a global undo stack, and having tried it, it's actually a pretty good solution. Obviously there are times that the result of the undo targets a document other than the current one and that can seem a b

Re: Synchronising across multiple NSUndoManager stacks

2008-03-21 Thread Jerry Krinock
On 2008 Mar, 21, at 17:50, Graham Cox wrote: So the question is, is this a requirement that others have come across and if so, how did you solve it? Not exactly that requirement, but something like it: I've had to deal with objects that can be moved among open documents. My solution was

Synchronising across multiple NSUndoManager stacks

2008-03-21 Thread Graham Cox
This may not be entirely a Cocoa question as much as it is general in nature... but any insight would be appreciated. I have a multi-document Cocoa app where each document has its own NSUndoManager, as per normal. Undo works great in general. However I have a particular class of object, we'