• 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: mmalcolm crawford <email@hidden>
  • Date: Sat, 29 Oct 2005 09:28:49 -0700


On Oct 29, 2005, at 8:16 AM, Tomáš Znamenáček wrote:

When the dialog starts, I start an undo group. When the dialog gets
cancelled, I undo the group. This is quite simple, but I hate adding
undo manager code to my class just because of the GUI. Couldn't my
controller do the work for me? How?

I'd probably agree with Jim that using a separate context is the better approach -- remember that the point of a context is that is serves as a scratchpad (which means you can make whatever changes you want to an object here without them affecting other copies) -- however I'm unclear about why you are reluctant to add "undo manager code to my class ". This is precisely where your custom controller code should go...?


mmalc

_______________________________________________
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: Re: Bindings and commit/rollback
  • Next by Date: Re: COCOA Frameworks for Relational Databases?
  • Previous by thread: Re: Bindings and commit/rollback
  • Next by thread: Predicate variable substitution
  • Index(es):
    • Date
    • Thread