April 2015
Intermediate to advanced
556 pages
17h 47m
English
When the user clicks the Configure Die menu item, the sheet should be presented in order to configure the currently selected DieView.
How will you determine which DieView to change? Because DieView accepts first responder, you can easily determine which, if any die view has the focus (and blue highlight) by checking the window’s firstResponder.
Open MainWindowController.swift and fill out the stub for showDieConfiguration(_:).
// MARK - Actions
var configurationWindowController: ConfigurationWindowController?
@IBAction func showDieConfiguration(sender: AnyObject?) {
println("Configuration menu item clicked")
if let window = window, let dieView = window.firstResponder as? DieView {
// Create and configure the ...