MonobjcMonobjc Documented Class Library
AttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo Method (error, recoveryOptionIndex, delegate, didRecoverSelector, contextInfo)
NamespacesMonobjc.FoundationINSErrorRecoveryAttemptingAttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(NSError, NSUInteger, Id, IntPtr, IntPtr)

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

Original signature is '- (void)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex delegate:(id)delegate didRecoverSelector:(SEL)didRecoverSelector contextInfo:(void *)contextInfo'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
void AttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(
	NSError error,
	NSUInteger recoveryOptionIndex,
	Id delegate,
	IntPtr didRecoverSelector,
	IntPtr contextInfo
)
Sub AttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo ( _
	error As NSError, _
	recoveryOptionIndex As NSUInteger, _
	delegate As Id, _
	didRecoverSelector As IntPtr, _
	contextInfo As IntPtr _
)
void AttemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo(
	NSError^ error, 
	NSUInteger recoveryOptionIndex, 
	Id^ delegate, 
	IntPtr didRecoverSelector, 
	IntPtr contextInfo
)
Parameters
error (NSError)
An NSError object that describes the error, including error recovery options.
recoveryOptionIndex (NSUInteger)
The index of the user selected recovery option in error’s localized recovery array.
delegate (Id)
An object that is the modal delegate.
didRecoverSelector (IntPtr)
A selector identifying the method implemented by the modal delegate.
contextInfo (IntPtr)
Arbitrary data associated with the attempt at error recovery, to be passed to delegate in didRecoverSelector.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)