Re: Out-of-order Undos and NSTextField
Re: Out-of-order Undos and NSTextField
- Subject: Re: Out-of-order Undos and NSTextField
- From: James Bucanek <email@hidden>
- Date: Mon, 10 Jul 2006 13:58:25 -0700
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
_______________________________________________
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