From 1ac4ec6e3ce6e63d610cbb312878ce3cd452c634 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 6 Dec 2020 15:21:30 -0600 Subject: [PATCH] Fork MainWindow.storyboard so that we stop Catalina and Big Sur from stepping all over each other. --- Mac/AppDelegate.swift | 3 +- Mac/Base.lproj/MainWindow.storyboard | 47 ++++--------------- .../TimelineContainerViewController.swift | 5 -- NetNewsWire.xcodeproj/project.pbxproj | 14 ++++++ 4 files changed, 24 insertions(+), 45 deletions(-) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 21827bcb2..44b983214 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -343,8 +343,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, func createMainWindowController() -> MainWindowController { let controller: MainWindowController if #available(macOS 11.0, *) { - let storyboard = NSStoryboard(name: NSStoryboard.Name("MainWindow"), bundle: nil) - controller = storyboard.instantiateController(withIdentifier: "UnifiedWindowController") as! MainWindowController + controller = windowControllerWithName("UnifiedWindow") as! MainWindowController } else { controller = windowControllerWithName("MainWindow") as! MainWindowController } diff --git a/Mac/Base.lproj/MainWindow.storyboard b/Mac/Base.lproj/MainWindow.storyboard index f1c954c14..39bfd8bde 100644 --- a/Mac/Base.lproj/MainWindow.storyboard +++ b/Mac/Base.lproj/MainWindow.storyboard @@ -255,31 +255,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - @@ -322,13 +297,13 @@ - + - + @@ -341,7 +316,7 @@ - + @@ -359,7 +334,7 @@ - + @@ -475,7 +450,7 @@ - + @@ -509,7 +484,7 @@