Annotation of Examples/DatabaseKit/AddressBook/Controller.h, revision 1.1.1.1

1.1       root        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: #import <objc/Object.h>
                     10: #import <objc/List.h>
                     11: 
                     12: @interface Controller:Object
                     13: {
                     14:        id      database;               /* The database to work from */
                     15:        
                     16:        id      theWindow;              /* the application main window  */
                     17:        id      addressView;    /* the scrollview that displays record information */
                     18:        id      cellMatrix;             /* the matrix contained in the scrollview  */
                     19:        
                     20:        id      recordList;             /* A DBRecordList instance to contain data records */
                     21:        id      propertyList;   /* A DBPropertyList instance associated with the
                     22:                                                 * record list.                                  
                     23:                                                 */      
                     24:        int     recordCount;
                     25:        id authorEntity;        /* Authors entity used as a source for the 
                     26:                                                   record list */
                     27:        id authId;                      /* Used as the key for record modifications             */
                     28:        id infoPanel;           
                     29:        id SQLPanel;            /* Panel showing all SQL queries                          */
                     30:        id textObj;                     /* Text object from the SQL panel                         */
                     31: }
                     32: - appDidInit:sender;
                     33: - initRecordList;
                     34: - getRecordList;
                     35: - getPropertyList;
                     36: - (int)getRecordCount;
                     37: 
                     38: - addRecords:sender;
                     39: - deleteRecords:sender;
                     40: - updateRecords:sender;
                     41: 
                     42: - showSQLPanel:sender;
                     43: 
                     44: - showInfoPanel:sender;
                     45: 
                     46: /* DBDatabase delegate method */
                     47: - (BOOL)db:aDb willEvaluateString:(const unsigned char*)aString
                     48:         usingBinder:aBinder;
                     49: @end
                     50: 
                     51: /* Add a category to the text object to show results */
                     52: @interface Text (printResults)
                     53: - appendToText:(const char *)newText;
                     54: @end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.