• 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 Undoing changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and Undoing changes


  • Subject: Re: Bindings and Undoing changes
  • From: Scott Stevenson <email@hidden>
  • Date: Thu, 16 Jun 2005 16:27:56 -0700


On Jun 16, 2005, at 11:57 AM, Sarat Kongara wrote:

I have a master-detail interface, the main window has a table view

(master interface) and double clicking each row in the tabel view

opens a new sheet for editing the model object attributes (detail

view). The sheet has two buttons "Cancel" and "Save". All the UI

elements in the detail view are using bindings. I am not sure how to

handle the Cancel functionality in the sheet, How can I undo the

changes when the user selects the "Cancel" button, it could be

multiple undos depending on how many fields in the sheet the user

changed. Should I create a new Undo Group?


You should create a duplicate set of model objects, and only copy the changes back to the main model if the user hits "Save". Core Data can do much of this automatically.

     - Scott


--

http://theocacao.com/

feed://theocacao.com/index.rss



 _______________________________________________
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: Bindings and Undoing changes
      • From: Sarat Kongara <email@hidden>
References: 
 >Bindings and Undoing changes (From: Sarat Kongara <email@hidden>)

  • Prev by Date: Re: Very odd NSImage problem ...
  • Next by Date: Re: Very odd NSImage problem ...
  • Previous by thread: Bindings and Undoing changes
  • Next by thread: Re: Bindings and Undoing changes
  • Index(es):
    • Date
    • Thread