Set the document window to use fullSizeContentView to avoid AppKit bugs
This commit is contained in:
2 files changed
+6
-7
No files matched your search
@@ -1,8 +1,7 @@
|
|||||||
<?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="24127" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="25098" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="25098"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="24127"/>
|
|
||||||
<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>
|
||||||
@@ -14,10 +13,10 @@
|
|||||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" toolbarStyle="expanded" id="s5f-yH-26m" userLabel="Window">
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="" animationBehavior="default" toolbarStyle="expanded" 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" fullSizeContentView="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="200" y="500" width="520" height="510"/>
|
<rect key="contentRect" x="200" y="500" width="520" height="510"/>
|
||||||
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1055"/>
|
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1049"/>
|
||||||
<value key="minSize" type="size" width="520" 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="520" height="510"/>
|
<rect key="frame" x="0.0" y="0.0" width="520" height="510"/>
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
|||||||
splitViewController.splitView.identifier = DocumentWindowController.splitViewResorationIdentifier
|
splitViewController.splitView.identifier = DocumentWindowController.splitViewResorationIdentifier
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.setContentSize(NSSize(width: 692, height: 510))
|
window.setContentSize(NSSize(width: 692, height: 600))
|
||||||
splitViewController.splitView.setPosition(160, ofDividerAt: 0)
|
splitViewController.splitView.setPosition(240, ofDividerAt: 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
didSelect(tracks: [])
|
didSelect(tracks: [])
|
||||||
|
|||||||
Reference in new issue
Block a user