home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / NEXTIME.framework / Versions / A / Headers / NTErrorMonitor.h < prev    next >
Encoding:
Text File  |  1995-08-30  |  820 b   |  37 lines

  1. /*
  2.  *  NTErrorMonitor.h
  3.  *     Copyright 1994, NeXT Computer, Inc.
  4.  *    
  5.  *    A set of protocols defining expected API in components which process
  6.  *    or generate error messages.
  7.  *
  8.  *    29 April 1994 mpaque Created.
  9.  */
  10. #import <Foundation/NSObject.h>
  11. #import "NTValueDictionary.h"
  12. /*
  13.  * Errors are reported in a dictionary, with C strings under the
  14.  * following keys (at a minimum):
  15.  *    
  16.  *    NTErrorTitle
  17.  *    NTErrorMessage
  18.  *
  19.  * Optional detail string:
  20.  *    NTErrorDetails
  21.  *
  22.  * Optional int value:
  23.  *    NTErrorCode
  24.  */
  25. @protocol NTErrorMonitor <NSObject>
  26. - (oneway void)errorReport:(bycopy NSDictionary *)report;
  27. @end
  28. /*
  29.  * Controllers  may be able to provide progress
  30.  * monitoring services.
  31.  */
  32. @protocol NTErrorGenerator <NSObject>
  33. - (void) setErrorMonitor:(id <NTErrorMonitor>)monitor;
  34. - (id <NTErrorMonitor>)errorMonitor;
  35. @end
  36.  
  37.