//
//  BIClientPicker.h
//  BIViews
//
//  Created by Ali Lalani on 24/04/05.
//  Copyright 2005 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <MCApplication/MCWindowController.h>

@class BIClient;

@interface BIClientPicker : MCWindowController
{
	IBOutlet NSArrayController *ac;
	IBOutlet NSTableView *tableView;
	IBOutlet NSTextField *displayStringTextField;
	
	BIClient *chosenClient;
	NSArray *clients;
	NSString *displayString;
	
	id document; // weak ref
}

- (id)initWithDocument:(id)aDoc clients:(NSArray *)aClients;

- (IBAction)done:(id)sender;
- (IBAction)cancel:(id)sender;

- (NSString *)displayString;
- (void)setDisplayString:(NSString *)aDisplayString;

- (NSArray *)clients;
- (void)setClients:(NSArray *)aPeople;

- (BIClient *)chosenClient;
- (void)setChosenPerson:(BIClient *)aChosenPerson;

- (void)setDocument:(id)aDoc;
- (id)document;

@end
