• 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
Why is my document not always marked as modified after a save?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Why is my document not always marked as modified after a save?
      • From: Martin Wierschin <email@hidden>
  • Prev by Date: Re: Confusing terms - menu/menubar
  • Next by Date: CoreData - trying to avoid separate thread
  • Previous by thread: Re: Observing bounds of an NSBezierPath
  • Next by thread: Re: Why is my document not always marked as modified after a save?
  • Index(es):
    • Date
    • Thread