Protocol: NSErrorRecoveryAttempting
Overview
The NSErrorRecoveryAttempting informal protocol provides methods that allow your application to attempt to recover from an error. These methods are invoked when an NSError object is returned that specifies the implementing object as the error recoveryAttempter and the user has selected one of the error’s localized recovery options.Implemented to attempt a recovery from an error noted in an application-modal dialog.Implemented to attempt a recovery from an error noted in an document-modal sheet.
Instance Method Summary (collapse)
-
- attemptRecoveryFromError:optionIndex:
Implemented to attempt a recovery from an error noted in an application-modal dialog.
-
- attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:
Implemented to attempt a recovery from an error noted in an document-modal sheet.
Instance Method Details
- (Boolean) attemptRecoveryFromError(error, optionIndex:recoveryOptionIndex)
Implemented to attempt a recovery from an error noted in an application-modal dialog. Invoked when an error alert is been presented to the user in an application-modal dialog, and the user has selected an error recovery option specified by error.
- (Object) attemptRecoveryFromError(error, optionIndex:recoveryOptionIndex, delegate:delegate, didRecoverSelector:didRecoverSelector, contextInfo:contextInfo)
Implemented to attempt a recovery from an error noted in an document-modal sheet. Invoked when an error alert is presented to the user in a document-modal sheet, and the user has selected an error recovery option specified by error. After recovery is attempted, your implementation should send delegate the message specified in didRecoverSelector, passing the provided contextInfo. The didRecoverSelector should have the following signature:
where didRecover is YES if the error recovery attempt was successful; otherwise it is NO.