-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 4e01368
Showing
5 changed files
with
3,113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.