April 2015
Intermediate to advanced
556 pages
17h 47m
English
The data for each course contains the URL of a web page that has a description of that class. The last functionality for this app is to open that web page in the user’s browser if the user double-clicks on the course.
To get the table view to respond to a double-click you must set the doubleAction and target of the table view. Unlike most target/action pairs, doubleAction must be set programmatically. Open MainWindowController.swift and add an outlet to the table view and the array controller:
class MainWindowController: NSWindowController {
@IBOutlet var tableView: NSTableView!
@IBOutlet var arrayController: NSArrayController!
let fetcher = ScheduleFetcher()
dynamic var courses: [Course] = []
Connect the outlets ...