NSTextview and model undo
NSTextview and model undo
- Subject: NSTextview and model undo
- From: Steven Spencer <email@hidden>
- Date: Wed, 15 Jun 2005 11:04:37 +0100
Hi Everyone!
I have document based project with a tableview and a textview bound
via an array controller to my model.
The model is an array of a class with a single string property.
The class uses the same undo manager as the document.
The binding automatically handles most of the undo function, posting
the changes to the model when the textview editing is completed and
also removes the textview edits from the undo stack.
I would like to know how to handle the following situation where
there is one model change on the undo stack and one text change :
Undo model
Undo typing
When the user undoes the typing, then the model and then redoes the
model, the Undo typing is no longer on the undo stack. I would like
to keep the undo typing on the undo stack, because the user would
expect it to be there. Does anyone know how to fix this ?
Thanks.
- Steve Spencer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden