Created
November 5, 2016 12:44
-
-
Save n3tr/dd567015108d4db95d1a1508eb231150 to your computer and use it in GitHub Desktop.
counterLabel
This file contains hidden or 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
// ViewController.swift | |
class ViewController: NSViewController { | |
@IBOutlet weak var counterLabel: NSTextField! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
counterLabel.bind("stringValue", to: self, withKeyPath: #keyPath(currentCounter), options: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment