• 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
Re: Grouping undo-able actions with CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grouping undo-able actions with CoreData


  • Subject: Re: Grouping undo-able actions with CoreData
  • From: Rick Ballard <email@hidden>
  • Date: Wed, 25 May 2005 15:23:17 -0700

On May 24, 2005, at 3:10 PM, John Timmer wrote:

There's sections of my code that create a large number of managed objects at
once, and set many of their values following creation.  From the user's
perspective, however, this is all in response to a single action (an "OK" in
a dialog).  I'd like to group the entire complex set of actions as a single
undo operation.

This should happen for you without any need for you to manually create undo groupings or invoke -[NSManagedObjectContext processPendingChanges], assuming that all the creation and value setting happens within one event loop. Was this not the behavior you saw when you tried it?

    - Rick Ballard
 _______________________________________________
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

References: 
 >Grouping undo-able actions with CoreData (From: John Timmer <email@hidden>)

  • Prev by Date: Shark problem on Tiger [SOLVED] - was: Re: Tiger: NSAttributedString from WebArchive
  • Next by Date: Re: Grouping undo-able actions with CoreData
  • Previous by thread: Re: Grouping undo-able actions with CoreData [SOLVED!]
  • Next by thread: NSCalendar: does the thing work at all? Or am I just blind?
  • Index(es):
    • Date
    • Thread