diff -r 000000000000 -r 629c7605ab2a MYAddressField.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MYAddressField.h Wed Apr 08 16:31:19 2009 -0700 @@ -0,0 +1,43 @@ +// +// MYAddressField.h +// YourMove +// +// Created by Jens Alfke on 7/16/08. +// Copyright 2008 Jens Alfke. All rights reserved. +// + +#import +@class MYAddressItem, ABPerson; + + +@interface MYAddressField : NSComboBox +{ + NSString *_property, *_prefix; + NSMutableArray *_addresses; + NSArray *_defaultAddresses; + MYAddressItem *_selectedAddress; +} + +@property (getter=isExpanded) BOOL expanded; + +@property (copy) NSString *addressProperty; +@property (copy) NSArray *defaultAddresses; + +@property (readonly,retain) MYAddressItem* selectedAddress; + +@end + + + +@interface MYAddressItem : NSObject +{ + NSString *_name, *_addressType, *_address, *_uuid; +} +- (id) initWithName: (NSString*)name + addressType: (NSString*)addressType address: (NSString*)address; +- (id) initWithPerson: (ABPerson*)person + addressType: (NSString*)addressType address: (NSString*)address; +- (id) initWithString: (NSString*)str addressType: (NSString*)addressType; +@property (readonly) NSString *name, *addressType, *address; +@property (readonly) ABPerson *person; +@end \ No newline at end of file