Now it's better!
authorAlexander Strange <astrange@ithinksw.com>
Wed, 1 Jan 2003 04:29:57 +0000 (04:29 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Wed, 1 Jan 2003 04:29:57 +0000 (04:29 +0000)
English.lproj/Registration.nib/classes.nib
RegController.h
RegController.m

index 5a0d60f..9d4c4e4 100755 (executable)
@@ -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 = {
index 8e7815d..8cf6a63 100755 (executable)
@@ -24,6 +24,5 @@
     IBOutlet NSWindow *n;
 }
 - (IBAction)verifyRegistration:(id)sender;
-- (IBAction)dismiss:(id)sender;
 @end
 #endif
\ No newline at end of file
index 9e1dada..ac0ff66 100755 (executable)
@@ -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