#import <appkit/Matrix.h>
#import <appkit/PopUpList.h>

@implementation PopUpList(PatchMethods)

- (const char *) itemAt:(unsigned int) index
{
	return [[matrix cellAt:index :0] title];
}

- selectItem:(const char *) title;
{
	if ([self indexOfItem:title] == -1) [self insertItem:title at:0];
	
	[matrix selectCellAt:[self indexOfItem:title] :0];
	
	return self;
}

@end
