FROM : James Bucanek
DATE : Mon Jul 10 22:58:25 2006
Bill Cheeseman wrote on Monday, July 10, 2006:
>A chapter in my book (written in Jaguar days) shows how you can implement
>"live" undo and redo in text fields. It's very tricky, and my technique does
>have some problems. Apple came along later and tried to do it themselves,
>but as you see they haven't got it quite right either.
In the absence of an implementation in NSTextField that plays nice with other controls, does anyone know of a way of defeating the undo mechanism in NSTextField? (Note that I already tried creating a subclass of NSTextField that returns nil for undoManager; this results in spectacularly bad results.)
I really don't need NSTextField pushing its own undo records. I push an undo action every time my model changes, and the model is updated automatically whenever the field is edited. So the individual editing changes in the field are superfluous.
--
James Bucanek
DATE : Mon Jul 10 22:58:25 2006
Bill Cheeseman wrote on Monday, July 10, 2006:
>A chapter in my book (written in Jaguar days) shows how you can implement
>"live" undo and redo in text fields. It's very tricky, and my technique does
>have some problems. Apple came along later and tried to do it themselves,
>but as you see they haven't got it quite right either.
In the absence of an implementation in NSTextField that plays nice with other controls, does anyone know of a way of defeating the undo mechanism in NSTextField? (Note that I already tried creating a subclass of NSTextField that returns nil for undoManager; this results in spectacularly bad results.)
I really don't need NSTextField pushing its own undo records. I push an undo action every time my model changes, and the model is updated automatically whenever the field is edited. So the individual editing changes in the field are superfluous.
--
James Bucanek
| Related mails | Author | Date |
|---|---|---|
| James Bucanek | Jul 8, 18:48 | |
| James Bucanek | Jul 10, 01:32 | |
| Ken Victor | Jul 10, 19:08 | |
| Bill Cheeseman | Jul 10, 19:57 | |
| Ken Victor | Jul 10, 21:29 | |
| Bill Cheeseman | Jul 10, 21:53 | |
| James Bucanek | Jul 10, 22:58 | |
| James Bucanek | Jul 11, 21:05 | |
| Ken Victor | Jul 11, 21:37 | |
| James Bucanek | Jul 12, 00:04 |






Cocoa mail archive

