Hi guys,
I've fixed my undo problem from last time after some help, but I've now found a less annoying bug to do with undo.
Basically in my app (a text view, and a window) when I first open a new document and type, undo works fine (with the dot in the close button). If I then save the file I was typing in (so the dot in the close button goes away) undo doesn't seem to work right. The actual "Undo Typing" menu item seems to work fine, but the document 'dot' does not seem to keep up.
I have a text view subclass and someone told me I needed to keep the NSDocument subclass and the NSTextView subclass in sync, I tried this by doing:
- (NSUndoManager *)undoManagerForTextView

NSTextView *)view;
{
return [self undoManager];
}
But I still get the same behavior, any ideas appreciated.
Thanks,
Oliver