undo is working again

This commit is contained in:
michael starke
2015-07-10 18:34:24 +02:00
parent 5974c7599b
commit 845d8547c4

View File

@@ -418,16 +418,16 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentCurrentItemChangedNotification object:self]; [[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentCurrentItemChangedNotification object:self];
} }
} }
//- (void)setTree:(KPKTree *)tree { - (void)setTree:(KPKTree *)tree {
// if(_tree != tree) { if(_tree != tree) {
// _tree = tree; _tree = tree;
// _tree.undoManager = [self undoManager]; _tree.undoManager = [self undoManager];
// if(nil == _treeDelgate) { if(nil == _treeDelgate) {
// _treeDelgate = [[MPTreeDelegate alloc] initWithDocument:self]; _treeDelgate = [[MPTreeDelegate alloc] initWithDocument:self];
// } }
// _tree.delegate = _treeDelgate; _tree.delegate = _treeDelgate;
// } }
//} }
#pragma mark Data Accesors #pragma mark Data Accesors