(Fixes issue 399) disable NSUndoManager grouping by events as it causes a spin condition on the run loop

This commit is contained in:
Christopher Lloyd 2009-10-06 14:06:39 +00:00
parent 0fe044a8b8
commit 9c80ecb4ff

View File

@ -201,6 +201,11 @@ NSString *NSUndoManagerDidRedoChangeNotification=@"NSUndoManagerDidRedoChangeNot
- (void)runLoopUndo:(id)dummy - (void)runLoopUndo:(id)dummy
{ {
return;
// FIXME: grouping by event is broken, causes a constant spin condition on the run loop by requeueing this method in itself
// is the run loop method broken or this one?
if (_groupsByEvent == YES) { if (_groupsByEvent == YES) {
if (_currentGroup != nil) if (_currentGroup != nil)
[self endUndoGrouping]; [self endUndoGrouping];