NSTextView undo problem
NSTextView undo problem
- Subject: NSTextView undo problem
- From: todd ransom <email@hidden>
- Date: Thu, 24 Feb 2005 22:29:03 -0700
Hi,
I have a strange problem with an NSTextView in my text editor app. When
you first load a file everything is fine. You type and the dot shows on
the close box. But if you save the file and add to the end of it, the
undo manager stops working. No dot and undo removes everything you
typed since the last save plus whatever you typed just before you
saved, leaving the document dirty again. The strange thing is this does
not happen if you start typing in the middle of the document - only if
you type at the end (where the end seems to be defined by all
whitespace at the end of the text).
I am using the text view's automatic undo, I'm not using bindings, and
I'm doing standard keyed archiving stuff in my save routine. I've
looked over all the relevant code and I'm at a complete loss. Has
anyone seen anything like this before? Or have any ideas about how to
debug it?
thanks,
Todd
_______________________________________________
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