• 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
Document still modified after last Undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Document still modified after last Undo


  • Subject: Document still modified after last Undo
  • From: David Catmull <email@hidden>
  • Date: Thu, 27 Apr 2006 22:05:42 -0700

In my drawing app, I'm working on dragging objects with the mouse. It's working except for one small problem: if I open a document, move a graphic, and then undo, the document remains "modified" even though the Undo command is left properly disabled.

Other undoable actions (which are done through bindings) don't have this problem: the document reverts to being unmodified after the last change is undone. The only difference I can think of is that for my dragging, I bracket the change with begin/endUndoGrouping in case multiple objects are selected. Could this be related, or am I missing something else?

I was surprised to find that with changes to multiple objects through bindings, undo grouping seems to be handled automatically. How does it find the undo manager?

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
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


  • Follow-Ups:
    • Re: Document still modified after last Undo
      • From: email@hidden
  • Prev by Date: What is groupName in WebView?
  • Next by Date: Re: Document still modified after last Undo
  • Previous by thread: What is groupName in WebView?
  • Next by thread: Re: Document still modified after last Undo
  • Index(es):
    • Date
    • Thread