Re: Bindings and commit/rollback
Re: Bindings and commit/rollback
- Subject: Re: Bindings and commit/rollback
- From: Jim Correia <email@hidden>
- Date: Sat, 29 Oct 2005 11:36:01 -0400
On Oct 29, 2005, at 11:16 AM, Tomáš Znamenáček wrote:
I am working on a small application that uses bindings. I have got a
dialog that is used to create or edit and object, the dialog uses
bindings and I would like to implement the traditional Save/Cancel
behaviour similar to the database commit/rollback concept. How do I do
that?
The correct solution here is, IMO, to use a separate managed object
context for the dialog, and to save or toss it when the dialog goes
away depending on the reason.
The main managed object context will have to listen for the save
notification and refresh its "copy" of the object as necessary.
Yes, it will have a separate copy of the object a an implementation
detail, but it is the cleanest solution.
Jim _______________________________________________
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