Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove mac code -- it lives in foss-credits-mac now

  • Loading branch information...
commit fb1610c843f27c20f3f7e1726f2b377875989261 1 parent b0e84ef
@andrewschaaf authored
View
10 README.md
@@ -3,12 +3,8 @@
![](//github.com/andrewschaaf/foss-credits/raw/master/docs/example.png)
-## Usage: Command-line + [foss-credits-collection](https://github.com/andrewschaaf/foss-credits-collection)
-
-Prereqs:
-* coffee-script
-* foss-credits-collection in the same folder as foss-credits
+## Usage: Command-line + [foss-credits-collection](https://github.com/andrewschaaf/foss-credits-collection)
<pre>
cd foss-credits
@@ -28,3 +24,7 @@ html = htmlFor({
]
})
</pre>
+
+## See also
+
+* [foss-credits-mac](https://github.com/andrewschaaf/foss-credits-mac)
View
16 mac/AboutController.h
@@ -1,16 +0,0 @@
-
-#import <Foundation/Foundation.h>
-#import "AboutCreditsController.h"
-
-@interface AboutController : NSObject {
-
-@private
-
- NSWindow *window;
- AboutCreditsController *aboutCreditsController;
-}
-
-- (void)showAbout;
-- (void)createWindow;
-
-@end
View
73 mac/AboutController.m
@@ -1,73 +0,0 @@
-
-#import "AboutController.h"
-
-
-@implementation AboutController
-
-- (id)init
-{
- self = [super init];
- if (self) {
- aboutCreditsController = [[AboutCreditsController alloc] init];
- }
-
- return self;
-}
-
-- (void)showAbout
-{
- if (! window) {
- [self createWindow];
- }
- [window makeKeyAndOrderFront:nil];
-}
-
-- (void)windowWillClose:(NSNotification*)notification
-{
- window = nil;
-}
-
-- (void)createWindow
-{
- window = [[NSWindow alloc]
- initWithContentRect:NSMakeRect(0, 0, 400, 300)
- styleMask:(NSClosableWindowMask | NSResizableWindowMask | NSMiniaturizableWindowMask)
- backing:NSBackingStoreBuffered
- defer:NO];
- [window setDelegate:self];
- [window setTitle:@""];
- [window setReleasedWhenClosed:YES];
-
- [window displayIfNeeded];
-
- NSSize dim = [window frame].size;
- NSRect screen = [[window screen] visibleFrame]; // e.g. origin=0,75 size=1440,803
- [window
- setFrame:NSMakeRect(
- ((screen.size.width - dim.width) * 0.5),
- ((screen.size.height - dim.height) * 0.8),
- dim.width,
- dim.height)
- display:NO];
-
-
- // Add content:
-
- NSView *view = [window contentView];
-
- NSButton *button = [[NSButton alloc] initWithFrame:NSMakeRect(10, 10, 300, 30)];
- [button setTitle:@"Show Open Source Licenses"];
- [button setTarget:aboutCreditsController];
- [button setAction:@selector(showCredits:)];
-
- [view addSubview:button];
-}
-
-- (void)dealloc
-{
- [window release];
- [aboutCreditsController release];
- [super dealloc];
-}
-
-@end
View
14 mac/AboutCreditsController.h
@@ -1,14 +0,0 @@
-
-#import <Foundation/Foundation.h>
-#import <WebKit/WebKit.h>
-
-@interface AboutCreditsController : NSObject {
-
-@private
- NSWindow *window;
-}
-
-- (IBAction)showCredits:(id)sender;
-- (void)createWindow;
-
-@end
View
80 mac/AboutCreditsController.m
@@ -1,80 +0,0 @@
-
-#import "AboutCreditsController.h"
-
-
-@implementation AboutCreditsController
-
-- (id)init
-{
- self = [super init];
- if (self) {
-
- }
-
- return self;
-}
-
-- (void)dealloc
-{
- [window release];
- [super dealloc];
-}
-
-
-- (IBAction)showCredits:(id)sender
-{
- if (! window) {
- [self createWindow];
- }
- [window makeKeyAndOrderFront:nil];
-}
-
-- (void)windowWillClose:(NSNotification*)notification
-{
- window = nil;
-}
-
-- (void)createWindow
-{
- double w = 780;
- double h = 500;
- window = [[NSWindow alloc]
- initWithContentRect:NSMakeRect(0, 0, w, h)
- styleMask:(NSClosableWindowMask | NSResizableWindowMask | NSMiniaturizableWindowMask)
- backing:NSBackingStoreBuffered
- defer:NO];
- [window setDelegate:self];
- [window setTitle:@"Open Source"];
- [window setReleasedWhenClosed:YES];
-
- [window displayIfNeeded];
-
- NSSize dim = [window frame].size;
- NSRect screen = [[window screen] visibleFrame]; // e.g. origin=0,75 size=1440,803
- [window
- setFrame:NSMakeRect(
- ((screen.size.width - dim.width) * 0.5),
- ((screen.size.height - dim.height) * 0.8),
- dim.width,
- dim.height)
- display:NO];
-
-
- // Add content:
-
- NSView *view = [window contentView];
-
- WebView *webView = [[WebView alloc]
- initWithFrame:NSMakeRect(0, 0, w, h)
- frameName:@"frameName"
- groupName:@"groupName"];
-
- [view addSubview:webView];
-
- NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/LICENSES.html"];
- [[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:path]]];
-
-}
-
-
-@end
Please sign in to comment.
Something went wrong with that request. Please try again.