|
|
1.1 root 1: /*--------------------------------------------------------------------------
2: *
3: * You may freely copy, distribute, and reuse the code in this example.
4: * SHL Systemhouse disclaims any warranty of any kind, expressed or
5: * implied, as to its fitness for any particular use.
6: *
7: * Address
8: *
9: * Inherits From: NSObject
10: *
11: * Conforms To: None
12: *
13: * Declared In: Address.h
14: *
15: * Class Description
16: *
17: * Address is the class we will use to hold location info.
18: *
19: *------------------------------------------------------------------------*/
20: #import <foundation/NSObject.h>
21:
22: @class NSMutableString;
23:
24:
25:
26:
27: @interface Address : NSObject
28: {
29: NSString *address;
30: NSString *city;
31: NSString *state;
32: NSString *zip;
33: }
34:
35: /*--------------------------------------------------------------------------
36: * Accessors
37: *------------------------------------------------------------------------*/
38: - (NSString *) address;
39: - (NSString *) city;
40: - (NSString *) state;
41: - (NSString *) zip;
42:
43: - (void) setAddress: (NSString *)anAddress;
44: - (void) setCity: (NSString *)aCity;
45: - (void) setState: (NSString *)aState;
46: - (void) setZip: (NSString *)aZip;
47:
48: @end
49:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.