|
|
1.1 root 1: /* NSAuthor.h
2: *
3: * You may freely copy, distribute, and reuse the code in this example.
4: * NeXT disclaims any warranty of any kind, expressed or implied, as to its
5: * fitness for any particular use.
6: *
7: * Example of an enterprise object which implements the new archiving protocol.
8: * NSAuthor is the enterprise object class defined in the authors entity of
9: * the Sybase pubs database (see pubs.eomodel in the same project directory).
10: *
11: */
12:
13:
14:
15: #import <eointerface/eointerface.h>
16: #import <eoaccess/eoaccess.h>
17: #import <foundation/NSArchiver.h>
18:
19: @interface NSAuthor:NSObject
20: {
21: NSString *authorID; // These descend from NSObject
22: NSString *firstname;
23: NSString *lastname;
24: NSString *address;
25: NSString *city;
26: NSString *state;
27: NSString *zip;
28: NSString *phone;
29: int contract; // Scalar type
30:
31: }
32:
33: - (NSString *)description;
34: - (void)encodeWithCoder:(NSCoder *)aCoder;
35: - initWithCoder:(NSCoder *)aDecoder;
36:
37: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.