-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I cannot get coalescing to work with NSTextViews. When I type into such a view, each keystroke gets added as a separate undoable action, instead of them all being grouped into one. I set up the undoer as it's shown in the text code (inside my NSDocument's init):
GCUndoManager *undoer = [GCUndoManager new];
[undoer enableUndoTaskCoalescing];
[undoer setCoalescingKind:kGCCoalesceAllMatchingTasks];
[self setUndoManager:(id)undoer];
[self setHasUndoManager:YES];
And I can confirm that this class' methods get invoked when I type into an NSTextView. If I trace the same calls in a NSUndoManager subclass, I see that registerUndoWithTarget:selector:object: gets invoked only once there, at the first typed character, whereas the same method gets invoked at every keystroke with GCUndoManager. I can't figure out why.
Metadata
Metadata
Assignees
Labels
No labels