Skip navigation.
 
mlRe: Out-of-order Undos and NSTextField
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

Related mailsAuthorDate
mlOut-of-order Undos and NSTextField James Bucanek Jul 8, 18:48
mlRe: Out-of-order Undos and NSTextField James Bucanek Jul 10, 01:32
mlRe: Out-of-order Undos and NSTextField Ken Victor Jul 10, 19:08
mlRe: Out-of-order Undos and NSTextField Bill Cheeseman Jul 10, 19:57
mlRe: Out-of-order Undos and NSTextField Ken Victor Jul 10, 21:29
mlRe: Out-of-order Undos and NSTextField Bill Cheeseman Jul 10, 21:53
mlRe: Out-of-order Undos and NSTextField James Bucanek Jul 10, 22:58
mlRe: Out-of-order Undos and NSTextField [SOLVED, well sort of] James Bucanek Jul 11, 21:05
mlRe: Out-of-order Undos and NSTextField [SOLVED, well sort of] Ken Victor Jul 11, 21:37
mlRe: Out-of-order Undos and NSTextField [SOLVED, well sort of] James Bucanek Jul 12, 00:04