From c7fd0c06dcd4976525ffab0f0f0f13f15e4fc118 Mon Sep 17 00:00:00 2001 From: Alexander Strange Date: Wed, 1 Jan 2003 04:29:57 +0000 Subject: [PATCH] Now it's better! --- English.lproj/Registration.nib/classes.nib | 3 ++- RegController.h | 1 - RegController.m | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/English.lproj/Registration.nib/classes.nib b/English.lproj/Registration.nib/classes.nib index 5a0d60f..9d4c4e4 100755 --- a/English.lproj/Registration.nib/classes.nib +++ b/English.lproj/Registration.nib/classes.nib @@ -1,8 +1,9 @@ { IBClasses = ( {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, + {CLASS = MenuTunes; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, { - ACTIONS = {dismiss = id; verifyRegistration = id; }; + ACTIONS = {verifyRegistration = id; }; CLASS = RegController; LANGUAGE = ObjC; OUTLETS = { diff --git a/RegController.h b/RegController.h index 8e7815d..8cf6a63 100755 --- a/RegController.h +++ b/RegController.h @@ -24,6 +24,5 @@ IBOutlet NSWindow *n; } - (IBAction)verifyRegistration:(id)sender; -- (IBAction)dismiss:(id)sender; @end #endif \ No newline at end of file diff --git a/RegController.m b/RegController.m index 9e1dada..ac0ff66 100755 --- a/RegController.m +++ b/RegController.m @@ -5,6 +5,13 @@ void (*kvp)(NSString *,NSString *) = keyverify; +- (void)registrationStart +{ + [NSBundle loadNibNamed:@"Registration" owner:self]; + [f show]; + [f center]; +} + - (IBAction)verifyRegistration:(id)sender { //note: check name, key for basic validity. SO needs some of this as well. @@ -20,6 +27,7 @@ void (*kvp)(NSString *,NSString *) = keyverify; else { NSRunInformationalAlertPanel(@"Failure",@"Your registration key is incorrect. Try again.",@"Aww",nil,nil); } + [f close]; } @end -- 2.20.1