1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/MYAddressField.h Wed Apr 08 16:31:19 2009 -0700
1.3 @@ -0,0 +1,43 @@
1.4 +//
1.5 +// MYAddressField.h
1.6 +// YourMove
1.7 +//
1.8 +// Created by Jens Alfke on 7/16/08.
1.9 +// Copyright 2008 Jens Alfke. All rights reserved.
1.10 +//
1.11 +
1.12 +#import <Cocoa/Cocoa.h>
1.13 +@class MYAddressItem, ABPerson;
1.14 +
1.15 +
1.16 +@interface MYAddressField : NSComboBox
1.17 +{
1.18 + NSString *_property, *_prefix;
1.19 + NSMutableArray *_addresses;
1.20 + NSArray *_defaultAddresses;
1.21 + MYAddressItem *_selectedAddress;
1.22 +}
1.23 +
1.24 +@property (getter=isExpanded) BOOL expanded;
1.25 +
1.26 +@property (copy) NSString *addressProperty;
1.27 +@property (copy) NSArray *defaultAddresses;
1.28 +
1.29 +@property (readonly,retain) MYAddressItem* selectedAddress;
1.30 +
1.31 +@end
1.32 +
1.33 +
1.34 +
1.35 +@interface MYAddressItem : NSObject
1.36 +{
1.37 + NSString *_name, *_addressType, *_address, *_uuid;
1.38 +}
1.39 +- (id) initWithName: (NSString*)name
1.40 + addressType: (NSString*)addressType address: (NSString*)address;
1.41 +- (id) initWithPerson: (ABPerson*)person
1.42 + addressType: (NSString*)addressType address: (NSString*)address;
1.43 +- (id) initWithString: (NSString*)str addressType: (NSString*)addressType;
1.44 +@property (readonly) NSString *name, *addressType, *address;
1.45 +@property (readonly) ABPerson *person;
1.46 +@end
1.47 \ No newline at end of file