Safely cancelling modifications
Safely cancelling modifications
- Subject: Safely cancelling modifications
- From: Eric Morand <email@hidden>
- Date: Thu, 23 Nov 2006 09:03:48 +0100
Hi list !
I'd like my users to be able to cancel the modifications done on a
managed object. I have an editor window, with a 'OK' button and a
'Cancel' button (just like the iTunes one). The text fields in the
window are bound to the managed object attributes. So, when the user
changes a value in a field, the managed object is automatically
modified with the entered value.
What I want is to allow the user to cancel every modification done
since the editor window has been opened when he clicks on Cancel.
I've found an instance method called "rollback" in NSManagedObject
but the documentations say that it restores everyhting to the last
commited values. What worries me is the word "everything" ! I don't
want every modifications done by my user to the database contents to
be cancelled !
Is there a safe way for doing this ? I suppose there is something I'm
missing : this feature can be found in nearly every single core data
application.
Thanks by advance,
Eric.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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