home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Examples / AppKit / Yap / Controller.h next >
Text File  |  1996-01-19  |  735b  |  30 lines

  1. #import <Foundation/Foundation.h>
  2.  
  3. @class YapOutput;
  4. @class NSApplication;
  5.  
  6. @interface Controller : NSObject {
  7.     id infoPanel;
  8.     id outputView;
  9. }
  10.  
  11. /* NSApplication delegate methods */
  12. - (BOOL)application:(NSApplication *)app openFile:(NSString *)filename;
  13. - (BOOL)application:(NSApplication *)app openTempFile:(NSString *)filename;
  14. - (BOOL)applicationOpenUntitledFile:(NSApplication *)app;
  15. - (BOOL)applicationShouldTerminate:(NSApplication *)app;
  16.  
  17. /* Action methods */
  18. - (void)createNew:(id)sender;
  19. - (void)open:(id)sender;
  20. - (void)saveAll:(id)sender;
  21. - (void)showInfoPanel:(id)sender;
  22.  
  23. /* Outlet methods */
  24. - (void)setVersionField:(id)anObject;    /* Fake; there's no outlet */
  25.  
  26. /* Output view... */
  27. - (YapOutput *)outputView;
  28.  
  29. @end
  30.