home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / Rhapsody / Graphics / ImageBrowser-1.0 / DASubController.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-11  |  1.1 KB  |  38 lines

  1. #import <AppKit/AppKit.h>
  2.  
  3. @interface DASubController : NSObject
  4. {
  5.     id window;
  6. }
  7.  
  8. + allocDocumentZone:(NSString *)name;
  9.  
  10. + (id)shared;
  11. + (id)new;
  12.  
  13. - (id)init;
  14. - (void)awakeFromNib;
  15.  
  16. - (void)display;
  17. - (void)display:sender;
  18.  
  19. - window;
  20.  
  21. @end
  22.  
  23. #ifndef _DA_EXCEPTION_
  24. #define _DA_EXCEPTION_
  25.     #define DURING    { NS_DURING
  26.  
  27.     #define HANDLER    NS_HANDLER switch ([[[localException userInfo] objectForKey:@"Return Value"] intValue]) {
  28.  
  29.     #define IGNORE(E)    case E: NSLog( @"Ignoring exception:%@(%s) in %s:%s.\n", [localException name], #E, __FILE__, sel_getName(_cmd)); break;
  30.  
  31.     #define RERAISE    [localException raise];
  32.  
  33.     #define ENDHANDLER    default: NSLog( @"Uncaught exception: %@(%@) in %s:%s.\n[%@]\n",  [localException name], [[localException userInfo] objectForKey:@"Return Value"],  __FILE__, sel_getName(_cmd), [localException reason]); abort();} NS_ENDHANDLER }
  34.  
  35.     #define FUNCT_ENDHANDLER    default: NSLog( @"Uncaught exception: %@(%@) in %s.\n[%@]\n", [localException name], [[localException userInfo] objectForKey:@"Return Value"], __FILE__, [localException reason]); abort(); } NS_ENDHANDLER }
  36.  
  37. #endif
  38.