From a0aad2138533ce5b08900748fd87c64e94d313df Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 20 Nov 2020 15:02:23 -0600 Subject: [PATCH] Rebuild Sidebar outline view to try to fix Catalina problems --- Mac/Base.lproj/MainWindow.storyboard | 64 +++++++++---------- .../Sidebar/SidebarViewController.swift | 4 +- 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/Mac/Base.lproj/MainWindow.storyboard b/Mac/Base.lproj/MainWindow.storyboard index 118b2ac69..13a4d30d4 100644 --- a/Mac/Base.lproj/MainWindow.storyboard +++ b/Mac/Base.lproj/MainWindow.storyboard @@ -299,42 +299,42 @@ - + - - - - + + + + - - + + - + - + - + - - + + - - - - + + + + @@ -342,34 +342,30 @@ - + - - + + - - - - + + + - - - - - - - + + - + + - + diff --git a/Mac/MainWindow/Sidebar/SidebarViewController.swift b/Mac/MainWindow/Sidebar/SidebarViewController.swift index e7dcf8cd3..f9ed440a6 100644 --- a/Mac/MainWindow/Sidebar/SidebarViewController.swift +++ b/Mac/MainWindow/Sidebar/SidebarViewController.swift @@ -24,8 +24,8 @@ protocol SidebarDelegate: class { @objc class SidebarViewController: NSViewController, NSOutlineViewDelegate, NSMenuDelegate, UndoableCommandRunner { - @IBOutlet var outlineView: SidebarOutlineView! - + @IBOutlet weak var outlineView: NSOutlineView! + weak var delegate: SidebarDelegate? private let rebuildTreeAndRestoreSelectionQueue = CoalescingQueue(name: "Rebuild Tree Queue", interval: 1.0)