From 4bcf26e35503e17cb901bcf8dc273f57d4ac48bc Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 27 Feb 2018 15:50:46 +0100 Subject: [PATCH] Fix window size on 10.10. --- Classes/Base.lproj/DocumentWindowController.xib | 12 ++++++------ Classes/DocumentWindowController.swift | 7 +++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Classes/Base.lproj/DocumentWindowController.xib b/Classes/Base.lproj/DocumentWindowController.xib index 84f06de..323f72f 100644 --- a/Classes/Base.lproj/DocumentWindowController.xib +++ b/Classes/Base.lproj/DocumentWindowController.xib @@ -1,8 +1,8 @@ - + - + @@ -21,11 +21,11 @@ - + - + - + @@ -194,7 +194,7 @@ - + diff --git a/Classes/DocumentWindowController.swift b/Classes/DocumentWindowController.swift index 2067edd..2eac64e 100644 --- a/Classes/DocumentWindowController.swift +++ b/Classes/DocumentWindowController.swift @@ -57,6 +57,13 @@ class DocumentWindowController: NSWindowController, TracksViewControllerDelegate window.setFrameAutosaveName(NSWindow.FrameAutosaveName(rawValue: "documentSave")) window.setFrameFrom("documentSave") } + else { + window.setContentSize(NSSize(width: 690, height: 510)) + } + + if #available(OSX 10.11, *) {} else { + splitViewController.splitView.setPosition(160, ofDividerAt: 0) + } didSelect(tracks: []) }