• 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
Undo Problem - Dot Not Returning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Undo Problem - Dot Not Returning


  • Subject: Undo Problem - Dot Not Returning
  • From: Oliver Cameron <email@hidden>
  • Date: Thu, 3 Jun 2004 14:06:55 +0100

Hi guys,

Sorry about the last email I sent to the list (I went to close the window and by accident hit send!) anyway, my problem is this:

I have a NSDocument based application, and its based on editing text documents (in a subclassed NSTextView). Now, I can't remember when this problem started, but it turns out that, if a user creates a new file and starts typing, undo seems to work fine. If they then save their work, and begin typing again, undo doesn't seem to work as expected. By unexpected, I mean the dot doesn't show in the title bar close button. If I go to edit (menu bar) and try undoing (it seems to record undo-ing fine) it works fine. A person I know told me I should use setDocumentEdited: on things like saveDocument, and textDidChange etc. So I did this, and this (in a very hackish sort of way) works. But it won't always, undo just gives up sometimes :-).

I was wondering if anyone else had, had this problem before and if there was a workaround (apart from the setDocumentEdited:)?

Thanks for any help,
Oliver
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Ugly bug in Foundation, beware!
  • Next by Date: Re: Getting keyboard events first
  • Previous by thread: Re: Ugly bug in Foundation, beware!
  • Next by thread: Custom NSTextField Cell editing problems
  • Index(es):
    • Date
    • Thread