Re: Why is my document not always marked as modified after a save?
Re: Why is my document not always marked as modified after a save?
- Subject: Re: Why is my document not always marked as modified after a save?
- From: Martin Wierschin <email@hidden>
- Date: Thu, 4 Jan 2007 20:25:25 -0800
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.
This is probably because the additional typing is coalesced into the
previous undo event. Eg: no new undo event is pushed to the
NSUndoManager's stack and thus the document is not marked as dirty.
Try calling NSTextView's "breakUndoCoalescing" after the document has
been saved.
~Martin
_______________________________________________
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