/* StringAgent.m
 * Written By:  Thomas Burkholder
 *
 * You may freely copy, distribute, and reuse the code in this example.
 * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
 * fitness for any particular use.
 */

#import "StringAgent.h"
#import "String.h"

@implementation StringAgent

- subdirectoryFor:anObject sender:sender
{
	return nil;
}

- (BOOL)isLeaf:anObject sender:sender
{
	return YES;
}

- (const char *)displayStringFor:anObject sender:sender
{
	return [anObject stringValue];
}

- (int)compare:first with:second sender:sender
{
	return strcmp([first stringValue],[second stringValue]);
}

- (const char *)titleOfColumn:(int)col
{
	return NULL;
}

@end