• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Out-of-order Undos and NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Out-of-order Undos and NSTextField [SOLVED, well sort of]
      • From: James Bucanek <email@hidden>
References: 
 >Re: Out-of-order Undos and NSTextField (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: [OT] OS X Icon Designers
  • Next by Date: Re: [OT] OS X Icon Designers
  • Previous by thread: Re: Out-of-order Undos and NSTextField
  • Next by thread: Re: Out-of-order Undos and NSTextField [SOLVED, well sort of]
  • Index(es):
    • Date
    • Thread