Created
February 16, 2018 11:00
-
-
Save zenangst/164579dd727ec508c36a2dd674b6d718 to your computer and use it in GitHub Desktop.
How to write an NSViewController without interface builder - Example 2
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
import Cocoa | |
class MyViewController: NSViewController {} | |
let frame = CGRect(origin: .zero, size: CGSize(width: 100, height: 100)) | |
let viewController = MyViewController() | |
viewController.view.frame = frame |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment