• 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: textDidChange doesn't work with undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: textDidChange doesn't work with undo


  • Subject: Re: textDidChange doesn't work with undo
  • From: Brian Webster <email@hidden>
  • Date: Wed, 4 Dec 2002 13:32:08 -0600

On Wednesday, December 4, 2002, at 01:12 PM, email@hidden wrote:

In my app, the delegate of an NSTextView uses textDidChange to track
any changes the user made. This works fine, except for undo.
Apparently textDidChange does not get called in this situation.

Am I missing something, and if not is there a solution/workaround for this?

Seems like a bug to me. You might try instead registering for a notification sent by the underlying NSTextStorage object, NSTextStorageDidProcessEditingNotification. This should get called whenever the storage changes, whether it's by typing or not. I'm not certain if it will get called at quite the same times as the NSTextView delegate method, but it should suffice.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: textDidChange doesn't work with undo
      • From: Koen van der Drift <email@hidden>
  • Prev by Date: Re: Cocoa and ... Pascal!!!
  • Next by Date: Re: __ape_agent crash?
  • Previous by thread: textDidChange doesn't work with undo
  • Next by thread: Re: textDidChange doesn't work with undo
  • Index(es):
    • Date
    • Thread