FROM : Chris Miner
DATE : Tue Jan 08 22:29:56 2008
Hi,
I'm implementing undo in a document based app with both text views
and text fields. I notice they don't work the same wrt undo. The
text field has its own undo manager and after editing ends pushes the
results out to the bound value property. The text view does this and
tracks changes in the docs undo manager as well. Since I am KVO-ing
changes to my model, I don't need/want the text view to record
changes in the docs undo manager. I rather like the way its being
done with the NSTextField.
Does anyone know how to set up an NSTextView so that it works the
same as NSTextField wrt undo/redo?
Cheers,
Chris
DATE : Tue Jan 08 22:29:56 2008
Hi,
I'm implementing undo in a document based app with both text views
and text fields. I notice they don't work the same wrt undo. The
text field has its own undo manager and after editing ends pushes the
results out to the bound value property. The text view does this and
tracks changes in the docs undo manager as well. Since I am KVO-ing
changes to my model, I don't need/want the text view to record
changes in the docs undo manager. I rather like the way its being
done with the NSTextField.
Does anyone know how to set up an NSTextView so that it works the
same as NSTextField wrt undo/redo?
Cheers,
Chris
| Related mails | Author | Date |
|---|---|---|
| Chris Miner | Jan 8, 22:29 | |
| Jay Reynolds Freem… | Jan 9, 00:24 |






Cocoa mail archive

