home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Connectivity / OmniDNSHelper-1.0b3 / WindowController.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-07  |  1.4 KB  |  51 lines

  1. /* WindowController.h created by andrew on Sat 05-Jul-1997 */
  2.  
  3.  
  4. #import <Foundation/NSObject.h>
  5.  
  6. #import <Foundation/NSGeometry.h>    // for NSPoint
  7.  
  8.  
  9. @class NSImage;
  10. @class NSWindow;
  11. @class NSString;
  12.  
  13.  
  14. #ifndef IBOutlet
  15. #define IBOutlet
  16. #endif
  17.  
  18.  
  19. @interface WindowController : NSObject
  20. {
  21.     NSImage *miniwindowImage;
  22.     IBOutlet NSWindow *window;
  23. }
  24.  
  25. + (NSPoint)locationForWindow:(NSWindow *)docWindow;
  26. + (NSString *)nibName;
  27. + (NSString *)miniwindowImageName;
  28.  
  29. - initLazily;    // designated initializer; inits but doesn't load nib
  30.  
  31. - (void)load;    // override to add anything to the load process (never call manually)
  32. - (void)loadIfNecessary;
  33. - (void)display;
  34.  
  35. - (BOOL)shouldClose;
  36. - (void)close;
  37.  
  38. - (void)save;                // this is the one to call
  39. - (void)save:sender;            // target-action version (silently catches exceptions)
  40. - (void)prepareToSaveChanges;        // override this if you need validation, etc
  41. - (void)saveChanges;            // override this to actually save the changes
  42. - (void)finishedSavingChanges;        // override this if you need to do any cleanup
  43.  
  44. - (void)revert;                // this is the one to call
  45. - (void)revert:sender;            // target-action version (silently catches exceptions)
  46. - (void)prepareToRevertChanges;        // override this if you need any revert preparation
  47. - (void)revertChanges;            // override this to actually revert the changes
  48. - (void)finishedRevertingChanges;    // override this if you need to do any cleanup
  49.  
  50. @end
  51.