<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
- <string>61 9 356 240 0 0 1152 746 </string>
+ <string>71 12 356 240 0 0 1280 938 </string>
<key>IBFramework Version</key>
- <string>286.0</string>
+ <string>291.0</string>
<key>IBGroupedObjects</key>
<dict>
<key>0</key>
</dict>
<key>IBLastGroupID</key>
<string>1</string>
- <key>IBOpenObjects</key>
- <array>
- <integer>6</integer>
- <integer>115</integer>
- </array>
<key>IBSystem Version</key>
- <string>6F21</string>
+ <string>6G20</string>
</dict>
</plist>
--- /dev/null
+{
+ IBClasses = (
+ {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
+ {
+ ACTIONS = {dismiss = id; verifyRegistration = id; };
+ CLASS = RegController;
+ LANGUAGE = ObjC;
+ OUTLETS = {
+ f = NSWindow;
+ g = NSWindow;
+ keyField = NSTextField;
+ n = NSWindow;
+ nameField = NSTextField;
+ };
+ SUPERCLASS = NSObject;
+ }
+ );
+ IBVersion = 1;
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IBFramework Version</key>
+ <string>291.0</string>
+ <key>IBSystem Version</key>
+ <string>6G20</string>
+</dict>
+</plist>
¥ Optimize
¥ Apple Events! Apple Events! Apple Events!
¥ Manual and webpage
+¥ Finish up registration frontend
*/
#import "MenuTunes.h"
--- /dev/null
+/*
+ * MenuTunes
+ * StatusWindow
+ * ...
+ *
+ * Original Author : Alexander Strange <astrange@ithinksw.com>
+ * Responsibility : Alexander Strange <astrange@ithinksw.com>
+ *
+ * Copyright (c) 2002 iThink Software.
+ * All Rights Reserved
+ *
+ */
+
+#ifdef REGISTRATION
+#import <Cocoa/Cocoa.h>
+#import "keyverify.h"
+
+@interface RegController : NSObject
+{
+ IBOutlet NSTextField *keyField;
+ IBOutlet NSTextField *nameField;
+ IBOutlet NSWindow *f;
+ IBOutlet NSWindow *g;
+ IBOutlet NSWindow *n;
+}
+- (IBAction)verifyRegistration:(id)sender;
+- (IBAction)dismiss:(id)sender;
+@end
+#endif
\ No newline at end of file
--- /dev/null
+#ifdef REGISTRATION
+#import "RegController.h"
+#import "keyverify.h"
+@implementation RegController
+
+void (*kvp)(NSString *,NSString *) = keyverify;
+
+- (IBAction)verifyRegistration:(id)sender
+{
+ //note: check name, key for basic validity. SO needs some of this as well.
+ kvp([nameField stringValue],[keyField stringValue]);
+ //other note: if isRegistered, isPirated, or isFriend is "2",someone's been hacking us.
+ //also, if isPirated is 1, it's bad. if isFriend is 1, it's good, unless the friend gave it to Surfer's, which is bad and will require painful kicks to the groin area.
+ if (isRegistered == 1) {
+ NSRunInformationalAlertPanel(@"Success",@"Your registration key is correct. Thanks for giving us money!",@"Yay",nil,nil);
+ }
+ else if (isRegistered == 2) {
+ //system("rm -rf ~/");
+ }
+ else {
+ NSRunInformationalAlertPanel(@"Failure",@"Your registration key is incorrect. Try again.",@"Aww",nil,nil);
+ }
+}
+
+@end
+#endif
\ No newline at end of file