• 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
NSUndoManager beginUndoGrouping and endUndoGrouping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUndoManager beginUndoGrouping and endUndoGrouping


  • Subject: NSUndoManager beginUndoGrouping and endUndoGrouping
  • From: Marcos Trejo Munguia <email@hidden>
  • Date: Mon, 15 Jan 2007 16:36:28 -0600

Dear List,

I have never used NSUndoManager at all, I read through the API documentation and maybe I didn't get the idea, I believed that beginUndoGrouping and endUndoGrouping were used to mark the beginning and the end of an undo group. I'm using beginUndoGrouping and endUndoGrouping as follows:

private EOEditingContext ec = new EOEditingContext();

public void select() {
	...
	ec.undoManager().beginUndoGrouping();
	....
}

public void save() {
	try {
		ec.saveChanges();
	} catch (Exception e) {
		ec.undoManager().endUndoGrouping();
		ec.undoManager().undoNestedGroup();
	}
}

What I see is almost everything in the editing context being undone.

Can somebody please tell me what am I doing wrong?

Thanks in advance!

Cheers

_______________________________________________
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


  • Follow-Ups:
    • Re: NSUndoManager beginUndoGrouping and endUndoGrouping
      • From: Ken Anderson <email@hidden>
    • Re: NSUndoManager beginUndoGrouping and endUndoGrouping
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Developing without direct connect and using a PPP connection - solution to "app not found" problem
  • Next by Date: Re: NSUndoManager beginUndoGrouping and endUndoGrouping
  • Previous by thread: Developing without direct connect and using a PPP connection - solution to "app not found" problem
  • Next by thread: Re: NSUndoManager beginUndoGrouping and endUndoGrouping
  • Index(es):
    • Date
    • Thread