forked from metal-by-example/sample-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update DrawingIn2D to build on macOS
Prior to this commit DrawingIn2D was a iOS app. This commit changes that by updating the code to work as a macOS application using NSView and respective function calls.
- Loading branch information
Showing
19 changed files
with
823 additions
and
237 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
2 changes: 1 addition & 1 deletion
2
objc/03-DrawingIn2D/DrawingIn2D.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.
8 changes: 8 additions & 0 deletions
8
...awingIn2D/DrawingIn2D.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.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,8 @@ | ||
<?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>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
@import UIKit; | ||
#import <Cocoa/Cocoa.h> | ||
|
||
@interface AppDelegate : UIResponder <UIApplicationDelegate> | ||
|
||
@property (strong, nonatomic) UIWindow *window; | ||
@interface AppDelegate : NSObject <NSApplicationDelegate> | ||
|
||
@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
72 changes: 0 additions & 72 deletions
72
objc/03-DrawingIn2D/DrawingIn2D/Assets.xcassets/AppIcon.appiconset/Contents.json
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-6.04 KB
objc/03-DrawingIn2D/DrawingIn2D/Assets.xcassets/AppIcon.appiconset/Icon@2x.png
Binary file not shown.
Binary file removed
BIN
-9.36 KB
objc/03-DrawingIn2D/DrawingIn2D/Assets.xcassets/AppIcon.appiconset/Icon@3x.png
Binary file not shown.
Binary file removed
BIN
-3.96 KB
objc/03-DrawingIn2D/DrawingIn2D/Assets.xcassets/AppIcon.appiconset/Icon~ipad.png
Binary file not shown.
Binary file removed
BIN
-7.76 KB
.../03-DrawingIn2D/DrawingIn2D/Assets.xcassets/AppIcon.appiconset/Icon~ipad@2x.png
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
objc/03-DrawingIn2D/DrawingIn2D/Assets.xcassets/Contents.json
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,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
objc/03-DrawingIn2D/DrawingIn2D/Base.lproj/LaunchScreen.storyboard
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.