File:  [NeXTSTEP 3.3 examples] / Examples / DatabaseKit / AddressBook / Controller.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:49:00 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

/* Controller.h 
 * You may freely copy, distribute, and reuse the code in this example.
 * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
 * fitness for any particular use.
 *
 * Written by: Mai Nguyen, NeXT Developer Support
 */

#import <objc/Object.h>
#import <objc/List.h>

@interface Controller:Object
{
  	id 	database;		/* The database to work from */
	
	id	theWindow;		/* the application main window	*/
  	id	addressView;	/* the scrollview that displays record information */
  	id	cellMatrix;		/* the matrix contained in the scrollview  */
	
  	id	recordList;		/* A DBRecordList instance to contain data records */
 	id	propertyList;	/* A DBPropertyList instance associated with the
  						 * record list.					 
						 */	 
 	int	recordCount;
	id authorEntity;	/* Authors entity used as a source for the 
						   record list */
	id authId;			/* Used as the key for record modifications		*/
	id infoPanel;		
	id SQLPanel;		/* Panel showing all SQL queries			  */
	id textObj;			/* Text object from the SQL panel			  */
}
- appDidInit:sender;
- initRecordList;
- getRecordList;
- getPropertyList;
- (int)getRecordCount;

- addRecords:sender;
- deleteRecords:sender;
- updateRecords:sender;

- showSQLPanel:sender;

- showInfoPanel:sender;

/* DBDatabase delegate method */
- (BOOL)db:aDb willEvaluateString:(const unsigned char*)aString
	 usingBinder:aBinder;
@end

/* Add a category to the text object to show results */
@interface Text (printResults)
- appendToText:(const char *)newText;
@end

unix.superglobalmegacorp.com

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