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: Yvo <email@hidden>
- Date: Fri, 5 Jan 2007 07:34:29 +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.
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.
Indeed, that fixes it. Thanks for the hint.
Isn't this a bug in NSDocument because this is the only case (end of
the document) where the document isn't marked as edited.
Anyways, thanks for your help!
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