#import "MyDialogController.h"

@implementation MyDialogController

- (IBAction)cancel:(id)sender
{
	[application terminate:nil];
}

- (IBAction)ok:(id)sender
{
	printf("%s", [[password stringValue] UTF8String]);
	[application terminate:nil];
}

- (void)awakeFromNib {
	[dialog center];
	[dialog setLevel:NSPopUpMenuWindowLevel];
	[application activateIgnoringOtherApps:YES];
}

@end
