• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is my document not always marked as modified after a save?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Why is my document not always marked as modified after a save? (From: Yvo <email@hidden>)
 >Re: Why is my document not always marked as modified after a save? (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Using DirectoryService to Find Users
  • Next by Date: Re: Observing bounds of an NSBezierPath
  • Previous by thread: Re: Why is my document not always marked as modified after a save?
  • Next by thread: CoreData - trying to avoid separate thread
  • Index(es):
    • Date
    • Thread