Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?
Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?
- Subject: Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?
- From: Keary Suska <email@hidden>
- Date: Tue, 26 Aug 2014 12:08:46 -0600
On Aug 26, 2014, at 11:39 AM, Keary Suska <email@hidden> wrote:
>> * When should I do this? before, or after my calls to CoreData?
>
> You would tend to register undo action in the order they need to be *undone*, but logically if you need to make changes in response to changes made to a context, you would register your actions after the changes are made.
It occurred to me that I should clarify this statement, as it the obvious reading could be misleading. More precisely, that you register undos with the notion of how they need to be undone. Undo will always perform actions in the *reverse* order that they are registered, so you want to make sure that the registered actions can e correctly performed in the reverse order.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden