• 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
Does NSUndoManager work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does NSUndoManager work?


  • Subject: Does NSUndoManager work?
  • From: Ricardo Parada <email@hidden>
  • Date: Sat, 08 Oct 2016 12:17:38 -0400

Hi All,

I have not used the undo manager since the Objective-C days I think.  I tried to use it recently but I get an exception. Has anybody used it successfully?  For example:

myEO.editingContext().undoManager().beginUndoGrouping();
myEO.setFoo(foo);
myEO.editingContext().undoManager().undo();

This code generates this exception:

java.lang.IllegalStateException: undo: undo manager is in invalid state, undo was called with too many nested undo groups


I thought there was something wrong with the undo manager in that editing context.  So I tried creating a new NSUndoManager() and calling setUndoManager(myUndoManager) on the editing context.  Same result.

I searched on google for that exception and several things came up but nothing that could tell me why it happens.

Thanks,
Ricardo Parada

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

This email sent to email@hidden

  • Prev by Date: Re: Return current page with direct actions
  • Next by Date: Re: Maven with subdirectories within the src/main/components/ path
  • Previous by thread: Re: Return current page with direct actions
  • Next by thread: Re: Maven with subdirectories within the src/main/components/ path
  • Index(es):
    • Date
    • Thread