• 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: Bindings and commit/rollback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Bindings and commit/rollback (From: Tomáš Znamenáček <email@hidden>)

  • Prev by Date: Bindings and commit/rollback
  • Next by Date: Re: Bindings and commit/rollback
  • Previous by thread: Bindings and commit/rollback
  • Next by thread: Re: Bindings and commit/rollback
  • Index(es):
    • Date
    • Thread