Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added harness for testing the whitelist window, added option to add t…

…o whitelist, had to brutalize current bindings, there's probably a better way to do it, but my binding-fu is weak.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information...
commit 4e013686359f7a11371e16919f292eb91c249ebb 1 parent 549effe
Ben Gottlieb bengottlieb authored committed
24 TestFiles/Debugging Harness/Harness-Info.plist
View
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.github.rentzsch.clicktoflash</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>NSMainNibFile</key>
+ <string>HarnessMain</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
19 TestFiles/Debugging Harness/HarnessAppDelegate.h
View
@@ -0,0 +1,19 @@
+//
+// HarnessAppDelegate.h
+// ClickToFlash
+//
+// Created by Ben Gottlieb on 2/9/09.
+// Copyright 2009 Stand Alone, Inc.. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import "CTFWhitelistWindowController.h"
+
+
+@interface HarnessAppDelegate : NSObject {
+ CTFWhitelistWindowController *_whitelistWindow;
+}
+
+
+- (IBAction) showWhitelistWindow: (id) sender;
+@end
24 TestFiles/Debugging Harness/HarnessAppDelegate.m
View
@@ -0,0 +1,24 @@
+//
+// HarnessAppDelegate.m
+// ClickToFlash
+//
+// Created by Ben Gottlieb on 2/9/09.
+// Copyright 2009 Stand Alone, Inc.. All rights reserved.
+//
+
+#import "HarnessAppDelegate.h"
+
+@implementation HarnessAppDelegate
+
+- (void) awakeFromNib {
+ [self showWhitelistWindow: nil];
+}
+
+- (IBAction) showWhitelistWindow: (id) sender {
+ if (_whitelistWindow == nil) _whitelistWindow = [[CTFWhitelistWindowController alloc] init];
+
+ [[_whitelistWindow window] makeKeyAndOrderFront: nil];
+}
+
+
+@end
14 TestFiles/Debugging Harness/HarnessMain.m
View
@@ -0,0 +1,14 @@
+//
+// main.m
+// Testing
+//
+// Created by Ben Gottlieb on 2/9/09.
+// Copyright Stand Alone, Inc. 2009. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+int main(int argc, char *argv[])
+{
+ return NSApplicationMain(argc, (const char **) argv);
+}
3,032 TestFiles/Debugging Harness/HarnessMain.xib
View
3,032 additions, 0 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.