Why is my document not always marked as modified after a save?
Why is my document not always marked as modified after a save?
- Subject: Why is my document not always marked as modified after a save?
- From: Yvo <email@hidden>
- Date: Thu, 4 Jan 2007 19:42:50 +0100
After I save my document, using the default undo/redo, the document
is not always marked as edited when I add text to the end of the
document.
You can quickly try this by creating a default NSDocument based
application and adding an NSTextview to the default window, set allow
undo to yes and add an outlet.
Finish the dataRepresentationOfType method by adding something like
this:
return [[textView string] dataUsingEncoding:
NSMacOSRomanStringEncoding
allowLossyConversion:YES];
now, run the application and write some text. Save the document and
use the arrow keys to go to the end and hit return or type some text.
Most of the time when you do this, the document is not marked as edited.
You may have to save and type again a few time to notice it but I can
reproduce this always.
Is this a bug or am I missing something?
Thanks in advance,
Yvo
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden