Instance Method

attemptRecoveryFromError:optionIndex:

Implemented to attempt a recovery from an error noted in an application-modal dialog.

Declaration

- (BOOL)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex;

Parameters

error

An NSError object that describes the error, including error recovery options.

recoveryOptionIndex

The index of the user selected recovery option in error's localized recovery array.

Return Value

YES if the error recovery was completed successfully, NO otherwise.

Discussion

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.

See Also

Attempting Recovery From Errors

- attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:

Implemented to attempt a recovery from an error noted in a document-modal sheet.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software