Re: Bindings and commit/rollback
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