Re: Setting up a UI where changes are only applied when OK clicked?
Re: Setting up a UI where changes are only applied when OK clicked?
- Subject: Re: Setting up a UI where changes are only applied when OK clicked?
- From: "Marcus S. Zarra" <email@hidden>
- Date: Wed, 11 Jul 2007 14:11:14 -0600
Another option would be to do an undo grouping before showing the
sheet/window. Then on save, just end the grouping and on cancel end
the grouping and perform an undo.
Marcus S. Zarra
Zarra Studios LLC
Simply Elegant Software for OS X
www.zarrastudios.com
On Jul 11, 2007, at 2:00 PM, Sean McBride wrote:
Hi all,
I have an app using Core Data and Cocoa Bindings.
I want to have a UI where I allow objects to be edited, but I don't
want
those changes actually applied until an 'OK' button is pressed. (For
example, iTunes' 'Get Info' window shows the current values, lets the
user change them around, but doesn't change the document until OK is
pressed.) This conflicts with the 'live' nature of bindings.
I seem to remember something about making a duplicate moc that is
swapped/merged with the original when the OK button is pressed, but I
just can't find it in the archives/docs...
I will RTFM if someone could kindly point me there. :)
Thanks,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40zarrastudios.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden