Przeglądaj źródła

Fix compiler warning when downcasting ViewController

master
Matt Baer 6 lat temu
rodzic
commit
0e2e48802a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      writeas/AppDelegate.swift

+ 1
- 1
writeas/AppDelegate.swift Wyświetl plik

@@ -45,7 +45,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidBecomeActive(_ notification: Notification) {
if vc == nil {
vc = NSApplication.shared().mainWindow?.contentViewController as! ViewController
vc = NSApplication.shared().mainWindow?.contentViewController as? ViewController
}
}



Ładowanie…
Anuluj
Zapisz