Permalink
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...
1 parent 549effe commit 4e013686359f7a11371e16919f292eb91c249ebb @bengottlieb bengottlieb committed with Feb 10, 2009
@@ -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>
@@ -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
@@ -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
@@ -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);
+}
Oops, something went wrong.

0 comments on commit 4e01368

Please sign in to comment.