[quote]Try it out. Open MainWindowController.swift and change the mainWindowController property to a weak reference using the weak keyword:
var windowController: MainWindowController?
weak var windowController: MainWindowController?
[/quote]
mainWindowController property is in the AppDelegate.swift file
You try to get help from the forum or the viewer.
maxbet
Shouldn’t this be “var mainWindowController …” instead of “var windowController …”?
The name in earlier chapters was “mainWindowController”, not “windowController”.
And, actually, it would be helpful if different names were used for the class property versus the variable inside the member function. So “var mainWindowController: MainWindowController?” same name as “let mainWindownController = MainWindowController()” can be confusing in communications like the one I am currently writing.
I am looking at 5th edition.