Called when the save or cancel button is pressed. The delegate should save the document requested.
Allows the delegate to conditionally allow or prevent saving. Called after the save button is invoked. If a NSError object is assigned to the
errorreference, than an alert is shown with the error’s