Re: textDidChange doesn't work with undo
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.