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

Grouping undo-able actions with CoreData


  • Subject: Grouping undo-able actions with CoreData
  • From: John Timmer <email@hidden>
  • Date: Tue, 24 May 2005 18:10:52 -0400

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.

I've tried having the Managed Object Context's undo manager group things by
event, but this doesn't work.  I've also tried to bracket the start and
finish of the OK button's target method with  begin/end undo grouping calls.
This results in the "undo" menu item being disabled, even though the
document window registers as having unsaved changes when the dialog is
closed.

Does anyone have any advice on how to get this to work?  Alternately, should
I be considering handling change management myself, overriding Core Data's
version?

Any advice would be appreciated,

JT



_______________________________________________
This mind intentionally left blank


 _______________________________________________
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: Grouping undo-able actions with CoreData
      • From: Rick Ballard <email@hidden>
    • Re: Grouping undo-able actions with CoreData
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Slow horizontal scrolling w/NSMutableAttributedStrings
  • Next by Date: Re: Grouping undo-able actions with CoreData
  • Previous by thread: Re: Slow horizontal scrolling w/NSMutableAttributedStrings
  • Next by thread: Re: Grouping undo-able actions with CoreData
  • Index(es):
    • Date
    • Thread