Grouping undo-able actions with CoreData
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