Sent to the delegate before the specified application presents an error message to the user.
Original signature is '- (NSError *)application:(NSApplication *)application willPresentError:(NSError *)error'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
NSError ApplicationWillPresentError( NSApplication application, NSError error )
Function ApplicationWillPresentError ( _ application As NSApplication, _ error As NSError _ ) As NSError
NSError^ ApplicationWillPresentError( NSApplication^ application, NSError^ error )
Parameters
- application (NSApplication)
- The application object associated with the delegate.
- error (NSError)
- The error object that is used to construct the error message. Your implementation of this method can return a new NSError object or the same one in this parameter.
Return Value
The error object to display.
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)