Canceling the insertion of a managed object
Canceling the insertion of a managed object
- Subject: Canceling the insertion of a managed object
- From: Eric Morand <email@hidden>
- Date: Wed, 14 Jun 2006 13:46:14 +0200
Hi List.
I'm currently wondering what is the best way to "cancel" the
insertion of a newly created managed object in the context.
Let's say my user click on a "New thing" button that create and
insert a newly allocated instance of Thing (a managed object
subclass). He then decides to cancel the operation (because he
doesn't want to create a new thing anymore). So he clicks on the
"Cancel" button.
How do I cancel the insertion ? I don't want this New/Cancel process
to dirty the database (in other words, I don't want to delete it from
the context).
Should i use the undo manager ?
Thanks for your help,
Eric.
_______________________________________________
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