Fix window size on 10.10.
This commit is contained in:
2 files changed
+13
-6
No files matched your search
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14092" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14101" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14092"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14101"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="s5f-yH-26m" userLabel="Window">
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" id="s5f-yH-26m" userLabel="Window">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="120" y="866" width="690" height="510"/>
|
<rect key="contentRect" x="100" y="870" width="520" height="510"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||||
<value key="minSize" type="size" width="690" height="510"/>
|
<value key="minSize" type="size" width="520" height="510"/>
|
||||||
<view key="contentView" id="rip-YL-WpY">
|
<view key="contentView" id="rip-YL-WpY">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="690" height="510"/>
|
<rect key="frame" x="0.0" y="0.0" width="520" height="510"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
</view>
|
</view>
|
||||||
<toolbar key="toolbar" implicitIdentifier="61E0A00C-CBF2-4937-9418-AC0758672070" explicitIdentifier="SBDocumentToolbar26" displayMode="iconOnly" sizeMode="regular" id="PRH-t4-qwh">
|
<toolbar key="toolbar" implicitIdentifier="61E0A00C-CBF2-4937-9418-AC0758672070" explicitIdentifier="SBDocumentToolbar26" displayMode="iconOnly" sizeMode="regular" id="PRH-t4-qwh">
|
||||||
@@ -194,7 +194,7 @@
|
|||||||
<connections>
|
<connections>
|
||||||
<outlet property="delegate" destination="-2" id="ifJ-VT-BdP"/>
|
<outlet property="delegate" destination="-2" id="ifJ-VT-BdP"/>
|
||||||
</connections>
|
</connections>
|
||||||
<point key="canvasLocation" x="1024" y="-701"/>
|
<point key="canvasLocation" x="644" y="-704"/>
|
||||||
</window>
|
</window>
|
||||||
</objects>
|
</objects>
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
@@ -57,6 +57,13 @@ class DocumentWindowController: NSWindowController, TracksViewControllerDelegate
|
|||||||
window.setFrameAutosaveName(NSWindow.FrameAutosaveName(rawValue: "documentSave"))
|
window.setFrameAutosaveName(NSWindow.FrameAutosaveName(rawValue: "documentSave"))
|
||||||
window.setFrameFrom("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: [])
|
didSelect(tracks: [])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user