Skip to content

Commit 4e01368

Browse files
bengottliebrentzsch
authored andcommitted
added harness for testing the whitelist window, added option to add to 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 <[email protected]>
1 parent 549effe commit 4e01368

File tree

5 files changed

+3113
-0
lines changed

5 files changed

+3113
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleExecutable</key>
8+
<string>${EXECUTABLE_NAME}</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>com.github.rentzsch.clicktoflash</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundlePackageType</key>
14+
<string>APPL</string>
15+
<key>CFBundleSignature</key>
16+
<string>????</string>
17+
<key>CFBundleVersion</key>
18+
<string>1.0</string>
19+
<key>NSMainNibFile</key>
20+
<string>HarnessMain</string>
21+
<key>NSPrincipalClass</key>
22+
<string>NSApplication</string>
23+
</dict>
24+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// HarnessAppDelegate.h
3+
// ClickToFlash
4+
//
5+
// Created by Ben Gottlieb on 2/9/09.
6+
// Copyright 2009 Stand Alone, Inc.. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
#import "CTFWhitelistWindowController.h"
11+
12+
13+
@interface HarnessAppDelegate : NSObject {
14+
CTFWhitelistWindowController *_whitelistWindow;
15+
}
16+
17+
18+
- (IBAction) showWhitelistWindow: (id) sender;
19+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// HarnessAppDelegate.m
3+
// ClickToFlash
4+
//
5+
// Created by Ben Gottlieb on 2/9/09.
6+
// Copyright 2009 Stand Alone, Inc.. All rights reserved.
7+
//
8+
9+
#import "HarnessAppDelegate.h"
10+
11+
@implementation HarnessAppDelegate
12+
13+
- (void) awakeFromNib {
14+
[self showWhitelistWindow: nil];
15+
}
16+
17+
- (IBAction) showWhitelistWindow: (id) sender {
18+
if (_whitelistWindow == nil) _whitelistWindow = [[CTFWhitelistWindowController alloc] init];
19+
20+
[[_whitelistWindow window] makeKeyAndOrderFront: nil];
21+
}
22+
23+
24+
@end
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// main.m
3+
// Testing
4+
//
5+
// Created by Ben Gottlieb on 2/9/09.
6+
// Copyright Stand Alone, Inc. 2009. All rights reserved.
7+
//
8+
9+
#import <Cocoa/Cocoa.h>
10+
11+
int main(int argc, char *argv[])
12+
{
13+
return NSApplicationMain(argc, (const char **) argv);
14+
}

0 commit comments

Comments
 (0)