You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
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.
The text was updated successfully, but these errors were encountered:
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):
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 withGCUndoManager
. I can't figure out why.The text was updated successfully, but these errors were encountered: