#import "DAYStringInspector.h"
#import <appkit/appkit.h>
#import "DAYString.h"

@implementation DAYStringInspector

- init
{
    char buf[MAXPATHLEN + 1];
    id bundle;
    
    [super init];
    bundle = [NXBundle bundleForClass:[DAYString class]];
    [bundle getPath:buf forResource:"DAYStringInspector" ofType:"nib"];
    [NXApp loadNibFile:buf owner:self withNames:NO fromZone:[self zone]];
    return self;
}

- (BOOL)wantsButtons { return YES; }

- revert:sender
{
	// Put string in text object
	[stringText setStringValue:[object stringValue]];
	return [super revert:sender];
}

- ok:sender
{
	[object setStringValue:[stringText stringValue]];
	return [super ok:sender];
}

@end
