Skip to content

Commit

Permalink
Add macOS target.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgulanowski committed Jun 18, 2018
1 parent be2b9ce commit 84bfbac
Show file tree
Hide file tree
Showing 13 changed files with 1,109 additions and 7 deletions.
15 changes: 15 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// AppDelegate.h
// ClearScreen-Mac
//
// Created by Brent Gulanowski on 2018-06-18.
// Copyright © 2018 Metal by Example. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface AppDelegate : NSObject <NSApplicationDelegate>


@end

27 changes: 27 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/AppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// AppDelegate.m
// ClearScreen-Mac
//
// Created by Brent Gulanowski on 2018-06-18.
// Copyright © 2018 Metal by Example. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
}


- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}


@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"images" : [
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
718 changes: 718 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/ClearScreen_Mac.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?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>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>
32 changes: 32 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2018 Metal by Example. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
15 changes: 15 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/ViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// ViewController.h
// ClearScreen-Mac
//
// Created by Brent Gulanowski on 2018-06-18.
// Copyright © 2018 Metal by Example. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface ViewController : NSViewController


@end

27 changes: 27 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/ViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// ViewController.m
// ClearScreen-Mac
//
// Created by Brent Gulanowski on 2018-06-18.
// Copyright © 2018 Metal by Example. All rights reserved.
//

#import "ViewController.h"

@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];

// Do any additional setup after loading the view.
}


- (void)setRepresentedObject:(id)representedObject {
[super setRepresentedObject:representedObject];

// Update the view, if already loaded.
}


@end
13 changes: 13 additions & 0 deletions objc/02-ClearScreen/ClearScreen-Mac/main.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// main.m
// ClearScreen-Mac
//
// Created by Brent Gulanowski on 2018-06-18.
// Copyright © 2018 Metal by Example. All rights reserved.
//

#import <Cocoa/Cocoa.h>

int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);
}
Loading

0 comments on commit 84bfbac

Please sign in to comment.