NSViewController User Interface State Restoration

To achieve aforementioned effect let’s create NSSearchField and a custom class named RestoredWindow containing just one property: import Cocoa class RestoredWindow: NSWindow { override class var restorableStateKeyPaths: [String] { return [“self.contentViewController.searchField.stringValue”] } } Assign this custom class to Window Controller in Identity Inspector. Next, let’s bind searchField.stringValue property to ViewController in Value section of Bindings … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)