Visual Format Language
Start a new Cocoa Application project and call it AutoLabelOut. Leave Document Based Application unchecked.
Open AppDelegate.swift and add the following code to applicationDidFinishLaunching(_:):
func applicationDidFinishLaunching(aNotification: NSNotification) { // Insert code here to initialize your application // Create the controls for the window: // Create a label: let label = NSTextField(frame: NSRect.zeroRect) ...
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.