• 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
NSTextView undo problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView undo problem


  • Subject: NSTextView undo problem
  • From: todd ransom <email@hidden>
  • Date: Thu, 24 Feb 2005 22:29:03 -0700

Hi,

I have a strange problem with an NSTextView in my text editor app. When you first load a file everything is fine. You type and the dot shows on the close box. But if you save the file and add to the end of it, the undo manager stops working. No dot and undo removes everything you typed since the last save plus whatever you typed just before you saved, leaving the document dirty again. The strange thing is this does not happen if you start typing in the middle of the document - only if you type at the end (where the end seems to be defined by all whitespace at the end of the text).

I am using the text view's automatic undo, I'm not using bindings, and I'm doing standard keyed archiving stuff in my save routine. I've looked over all the relevant code and I'm at a complete loss. Has anyone seen anything like this before? Or have any ideas about how to debug it?

thanks,
Todd

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Re: NSTask not using arguments?
  • Next by Date: Re: Doc-based App like Mail
  • Previous by thread: NSArrayController/Shared Defaults fun & games [solved]
  • Next by thread: Correct usage of replaceOccurencesOfString:withString:options:range
  • Index(es):
    • Date
    • Thread