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

NSTextview and model undo


  • Subject: NSTextview and model undo
  • From: Steven Spencer <email@hidden>
  • Date: Wed, 15 Jun 2005 11:04:37 +0100

Hi Everyone!

I have document based project with a tableview and a textview bound via an array controller to my model.
The model is an array of a class with a single string property.
The class uses the same undo manager as the document.
The binding automatically handles most of the undo function, posting the changes to the model when the textview editing is completed and also removes the textview edits from the undo stack.
I would like to know how to handle the following situation where there is one model change on the undo stack and one text change :


Undo model
Undo typing

When the user undoes the typing, then the model and then redoes the model, the Undo typing is no longer on the undo stack. I would like to keep the undo typing on the undo stack, because the user would expect it to be there. Does anyone know how to fix this ?

Thanks.

  - Steve Spencer
_______________________________________________
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: Creating a subclass of an *unknown* object
  • Next by Date: Re: Screen Saver -> Web Application
  • Previous by thread: Re: Missing dockMenu Outlet
  • Next by thread: More multiple movable modal madness
  • Index(es):
    • Date
    • Thread