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

/* NSAuthor.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.
 *
 * Example of an enterprise object which implements the new archiving protocol.
 * NSAuthor is the enterprise object class defined in the authors entity of
 * the Sybase pubs database (see pubs.eomodel in the same project directory).
 *
 */



#import <eointerface/eointerface.h>
#import <eoaccess/eoaccess.h>
#import <foundation/NSArchiver.h>

@interface NSAuthor:NSObject
{
    NSString *authorID;		// These descend from NSObject
    NSString *firstname;
    NSString *lastname;
    NSString *address;
    NSString *city;
    NSString *state;
    NSString *zip;
    NSString *phone;
    int contract;		// Scalar type
     
}

- (NSString *)description;
- (void)encodeWithCoder:(NSCoder *)aCoder;
- initWithCoder:(NSCoder *)aDecoder;

@end

unix.superglobalmegacorp.com

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