forked from kgn/KGNoise
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit of working mac example
- Loading branch information
Showing
14 changed files
with
476 additions
and
1,608 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,9 @@ | ||
xcuserdata | ||
.DS_Store | ||
html | ||
appledoc | ||
*.pyc | ||
user.*.espressostorage | ||
Sparkle/*.app | ||
*.zip | ||
PXListView |
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
// | ||
// KGAppDelegate.h | ||
// KGMacAppDelegate.h | ||
// KGNoiseExample | ||
// | ||
// Created by David Keegan on 9/11/12. | ||
// Copyright (c) 2012 David Keegan. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import "KGNoise.h" | ||
|
||
@interface KGAppDelegate : NSObject <NSApplicationDelegate> | ||
|
||
@property (assign) IBOutlet NSWindow *window; | ||
@property (weak) IBOutlet KGNoiseView *viewLeft; | ||
@property (weak) IBOutlet KGNoiseView *viewRight; | ||
|
||
@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,22 @@ | ||
// | ||
// KGMacAppDelegate.m | ||
// KGNoiseExample | ||
// | ||
// Created by David Keegan on 9/11/12. | ||
// Copyright (c) 2012 David Keegan. All rights reserved. | ||
// | ||
|
||
#import "KGMacAppDelegate.h" | ||
|
||
@implementation KGAppDelegate | ||
|
||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification{ | ||
self.viewLeft.backgroundColor = [NSColor darkGrayColor]; | ||
self.viewLeft.noiseOpacity = 0.1; | ||
self.viewLeft.noiseBlendMode = kCGBlendModeMultiply; | ||
|
||
self.viewRight.backgroundColor = [NSColor lightGrayColor]; | ||
self.viewRight.noiseOpacity = 0.2; | ||
} | ||
|
||
@end |
File renamed without changes.
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
7 changes: 7 additions & 0 deletions
7
Example/KGMacNoiseExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.