I have an NSToolBar button NSToolBar in my NSWindowController class, which is my main window class:
class MainWindowController: NSWindowController { @IBOutlet weak var myButton: NSButton!
I have a MainViewController class, that is, the contents of the NSViewController main window.
How can I access this button in my NSViewController content? Is there a better way to organize IBOutlets and controllers for easier access?
cocoa swift macos
Yuri malheiros
source share