home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / DatabaseKit / PubsDemo / Controller.h next >
Encoding:
Text File  |  1993-07-14  |  1.2 KB  |  47 lines

  1. /* Controller.h:
  2.  * You may freely copy, distribute, and reuse the code in this example.
  3.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  4.  * fitness for any particular use.
  5.  *
  6.  * Written by Mai Nguyen, NeXT Developer Support
  7.  *
  8.  */
  9.  
  10. #import <objc/Object.h>
  11.  
  12.  
  13. @interface Controller:Object
  14. {
  15.     id    theWindow;            /* The main application window */
  16.     id    dbModule;            /* DBModule instance representing the Authors
  17.                                     table */
  18.        id  dbDatabase;            /* the pubs database */    
  19.     id    dbRecordList;
  20.     id    dbTableView;
  21.     id    dbQualifier;
  22.     id    dbFetchGroup;
  23.     id    sortProp;            /* Property used for sorting    */
  24.       id     aValue;                /* a DBValue instance to look at record contents */    
  25.     int recordOrder;        /* Record retrieval order */
  26.     id     formMatrix;            /* Author data form matrix */
  27.     id    qualifierField;        /* Text field to build the query before a SELECT */    
  28. }
  29.  
  30. - select:sender;
  31. - insert:sender;
  32. - checkInputRecord:sender;
  33. - display;
  34. - clearData;
  35. - fillNewRecordAt:(int)index;
  36. - changeRetrieveOrder:sender;
  37. - buildSelectQualifier:sender; 
  38.  
  39. /* Controller Object Delegate methods */
  40. - fetchGroup:fetchGroup didInsertRecordAt:(int)index;
  41. - fetchGroupDidSave:fetchGroup;
  42. - fetchGroupWillFetch:fetchGroup;
  43.  
  44.  
  45. @end
  46.  
  47.