April 2015
Intermediate to advanced
556 pages
17h 47m
English
Create a new NSWindowController subclass
called ConfigurationWindowController along with a corresponding XIB.
Navigate to
File → New → File....
In the presented sheet, select Source
from the OS X section
and select Cocoa Class from the resulting options.
Click Next.
Enter ConfigurationWindowController
in the Class field,
and enter NSWindowController
in the Subclass of field.
Ensure that the checkbox labeled
Also create XIB file for user interface
is checked,
and that Swift
is the selected Language.
In ConfigurationWindowController.swift, add properties that you will bind the UI to, override windowNibName to load the proper NIB, and stub out the button action methods:
import Cocoa class ConfigurationWindowController: ...