Connecting the Model Layer to the Controller
In MainWindowController.swift, update generatePassword(_:) to call generateRandomString() with a constant length.
import Cocoa class MainWindowController: NSWindowController { @IBOutlet weak var textField: NSTextField! override func windowDidLoad() { super.windowDidLoad() // Implement this method to handle any initialization after your // window controller's window has been loaded ...
Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.