Pending Operation

There are five methods you can use to manage the pending state.

SampleApp_Customer *customer = [SampleApp_Customer find:101]; 
//Make some changes to the customer record.
//Save the changes

//If the user  wishes to cancel the changes, a call to cancel pending will revert to the old values.

[customer cancelPending]; 

// The user can submit the changes to the server as follows:
[customer submitPending];