MonobjcMonobjc Documented Class Library
WillPresentError Method (anError)
NamespacesMonobjc.AppKitNSResponderWillPresentError(NSError)

Implemented by subclasses to return a custom version of the supplied error object that is more suitable for presentation in alert sheets and dialogs.

Original signature is '- (NSError *)willPresentError:(NSError *)anError'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSError WillPresentError(
	NSError anError
)
Public Overridable Function WillPresentError ( _
	anError As NSError _
) As NSError
public:
virtual NSError^ WillPresentError(
	NSError^ anError
)
Parameters
anError (NSError)
The error object to be customized.
Return Value
The customized error object; if you decide not to customize the error presentation, return by sending this message to super (that is, return [super willPresentError:anError]).
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.AppKit (Module: Monobjc.AppKit)