Save the view controllers size.

This commit is contained in:
Damiano Galassi committed 2019-08-07 15:21:43 +02:00
1 parent 106813d5e5
commit 0f122f6242
8 files changed
+90 -44

No files matched your search

+13 -7
View File
@@ -144,6 +144,7 @@ DQ
</subviews>
<constraints>
<constraint firstItem="gBb-mO-eZD" firstAttribute="baseline" secondItem="Dyr-Xb-8vA" secondAttribute="baseline" id="8Wg-m1-HG3"/>
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="qsS-B6-c2q" secondAttribute="trailing" constant="20" id="9UN-0q-TUf"/>
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="top" secondItem="e2g-GX-p4j" secondAttribute="top" constant="4" id="AYy-SY-X6w"/>
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="gBb-mO-eZD" secondAttribute="trailing" constant="7" id="Gas-Hm-DaP"/>
<constraint firstItem="0aO-Wz-ASZ" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="Hk6-CI-CYe"/>
@@ -152,7 +153,6 @@ DQ
<constraint firstItem="qsS-B6-c2q" firstAttribute="top" secondItem="Dyr-Xb-8vA" secondAttribute="bottom" constant="8" id="QAC-jz-sxh"/>
<constraint firstItem="x4l-iV-xgr" firstAttribute="trailing" secondItem="0aO-Wz-ASZ" secondAttribute="trailing" id="crX-q8-6xo"/>
<constraint firstItem="Dyr-Xb-8vA" firstAttribute="leading" secondItem="gBb-mO-eZD" secondAttribute="trailing" constant="7" id="cxE-Kb-aJS"/>
<constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="qsS-B6-c2q" secondAttribute="trailing" constant="20" symbolic="YES" id="erv-bk-Cev"/>
<constraint firstItem="gBb-mO-eZD" firstAttribute="leading" secondItem="e2g-GX-p4j" secondAttribute="leading" constant="20" symbolic="YES" id="feD-8w-Skn"/>
<constraint firstAttribute="trailing" secondItem="x4l-iV-xgr" secondAttribute="trailing" constant="17" id="fhM-i9-sRG"/>
<constraint firstAttribute="bottom" secondItem="qsS-B6-c2q" secondAttribute="bottom" constant="10" id="pUJ-uL-Hfg"/>
@@ -221,7 +221,7 @@ DQ
</textFieldCell>
</textField>
<comboBox verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yxL-hY-Wvf">
<rect key="frame" x="81" y="38" width="376" height="26"/>
<rect key="frame" x="81" y="36" width="376" height="26"/>
<comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" usesDataSource="YES" numberOfVisibleItems="5" id="o7O-s5-2MI">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -290,13 +290,13 @@ DQ
<constraint firstItem="UTG-O0-5RG" firstAttribute="leading" secondItem="4yY-id-JNb" secondAttribute="trailing" constant="60" id="5bZ-A2-oAt"/>
<constraint firstItem="gWo-ag-3S4" firstAttribute="baseline" secondItem="nYS-Uo-Puv" secondAttribute="baseline" id="7w2-5k-loo"/>
<constraint firstItem="PoJ-z7-u2L" firstAttribute="top" secondItem="EpM-F6-30O" secondAttribute="top" id="EaM-eF-HSu"/>
<constraint firstItem="yxL-hY-Wvf" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="3" id="G5G-ft-fJh"/>
<constraint firstItem="yxL-hY-Wvf" firstAttribute="top" secondItem="pC0-6X-DbE" secondAttribute="top" constant="5" id="G5G-ft-fJh"/>
<constraint firstItem="r32-v1-g3U" firstAttribute="baseline" secondItem="PmP-Uz-mXF" secondAttribute="baseline" id="IcC-EN-90a"/>
<constraint firstItem="PmP-Uz-mXF" firstAttribute="leading" secondItem="r32-v1-g3U" secondAttribute="trailing" constant="7" id="Nlc-DQ-qvf"/>
<constraint firstItem="gWo-ag-3S4" firstAttribute="width" secondItem="PoJ-z7-u2L" secondAttribute="width" id="PI1-1C-eAU"/>
<constraint firstItem="EpM-F6-30O" firstAttribute="trailing" secondItem="UTG-O0-5RG" secondAttribute="trailing" id="PKp-73-Vbb"/>
<constraint firstItem="EpM-F6-30O" firstAttribute="baseline" secondItem="yxL-hY-Wvf" secondAttribute="baseline" id="U6r-NC-15V"/>
<constraint firstItem="nYS-Uo-Puv" firstAttribute="top" secondItem="yxL-hY-Wvf" secondAttribute="bottom" constant="10" id="X20-ep-zpA"/>
<constraint firstItem="EpM-F6-30O" firstAttribute="baseline" secondItem="yxL-hY-Wvf" secondAttribute="baseline" constant="-2" id="U6r-NC-15V"/>
<constraint firstItem="nYS-Uo-Puv" firstAttribute="top" secondItem="yxL-hY-Wvf" secondAttribute="bottom" constant="8" id="X20-ep-zpA"/>
<constraint firstItem="PoJ-z7-u2L" firstAttribute="leading" secondItem="pC0-6X-DbE" secondAttribute="leading" constant="16" id="YbU-68-uWT"/>
<constraint firstAttribute="trailing" secondItem="EpM-F6-30O" secondAttribute="trailing" constant="17" id="baJ-gT-gpq"/>
<constraint firstItem="EpM-F6-30O" firstAttribute="leading" secondItem="yxL-hY-Wvf" secondAttribute="trailing" constant="12" id="e0P-Oe-Tz3"/>
@@ -385,6 +385,9 @@ DQ
</tableView>
</subviews>
</clipView>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="50" id="wsU-4L-Wj8"/>
</constraints>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="DSb-N5-maX">
<rect key="frame" x="1" y="149" width="438" height="15"/>
<autoresizingMask key="autoresizingMask"/>
@@ -410,13 +413,13 @@ DQ
<rect key="frame" x="0.0" y="145" width="510" height="239"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="L9f-RN-ymm">
<scrollView autohidesScrollers="YES" horizontalLineScroll="39" horizontalPageScroll="10" verticalLineScroll="39" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="L9f-RN-ymm">
<rect key="frame" x="0.0" y="0.0" width="510" height="239"/>
<clipView key="contentView" id="JKj-Cf-XlS">
<rect key="frame" x="1" y="0.0" width="508" height="238"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="8SH-1C-Y6N" viewBased="YES" id="7Te-u0-Sax" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="37" rowSizeStyle="automatic" headerView="8SH-1C-Y6N" viewBased="YES" id="7Te-u0-Sax" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="508" height="213"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
@@ -521,6 +524,9 @@ DQ
</tableView>
</subviews>
</clipView>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="50" id="ot4-UB-qcj"/>
</constraints>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="vAq-7z-LNe">
<rect key="frame" x="1" y="72" width="135" height="15"/>
<autoresizingMask key="autoresizingMask"/>
+28 -28
View File
@@ -21,11 +21,11 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<view id="laY-ru-6TM">
<rect key="frame" x="0.0" y="0.0" width="537" height="468"/>
<rect key="frame" x="0.0" y="0.0" width="515" height="466"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="3EA-ze-TJM">
<rect key="frame" x="441" y="13" width="82" height="32"/>
<rect key="frame" x="419" y="13" width="82" height="32"/>
<buttonCell key="cell" type="push" title="Add" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="6fG-qc-eA5">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -35,7 +35,7 @@
</connections>
</button>
<button verticalHuggingPriority="750" horizontalCompressionResistancePriority="1000" translatesAutoresizingMaskIntoConstraints="NO" id="gTi-Iq-Nr3">
<rect key="frame" x="359" y="13" width="82" height="32"/>
<rect key="frame" x="337" y="13" width="82" height="32"/>
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="QM5-jw-kZn">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -48,23 +48,23 @@ Gw
</connections>
</button>
<splitView translatesAutoresizingMaskIntoConstraints="NO" id="Wp0-Bs-YwM">
<rect key="frame" x="20" y="61" width="497" height="346"/>
<rect key="frame" x="20" y="61" width="475" height="344"/>
<subviews>
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="17" horizontalPageScroll="10" verticalLineScroll="17" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="nDM-fz-6g5">
<rect key="frame" x="0.0" y="0.0" width="497" height="139"/>
<rect key="frame" x="0.0" y="0.0" width="475" height="138"/>
<autoresizingMask key="autoresizingMask"/>
<clipView key="contentView" id="yBC-YM-YEp">
<rect key="frame" x="1" y="0.0" width="495" height="138"/>
<rect key="frame" x="1" y="0.0" width="473" height="137"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" rowHeight="15" rowSizeStyle="automatic" headerView="SPx-Rw-QAC" viewBased="YES" id="1tx-ei-5Gq">
<rect key="frame" x="0.0" y="0.0" width="495" height="113"/>
<rect key="frame" x="0.0" y="0.0" width="473" height="112"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn identifier="title" width="230" minWidth="40" maxWidth="1000" id="3iF-NJ-e1F">
<tableColumn identifier="title" width="208" minWidth="40" maxWidth="1000" id="3iF-NJ-e1F">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Title">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
@@ -78,11 +78,11 @@ Gw
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="titleCell" id="Tky-Zp-cYn">
<rect key="frame" x="1" y="1" width="230" height="15"/>
<rect key="frame" x="1" y="1" width="208" height="15"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="cDF-HG-QsB">
<rect key="frame" x="0.0" y="1" width="230" height="14"/>
<rect key="frame" x="0.0" y="1" width="208" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="ikP-RU-BJG">
<font key="font" metaFont="smallSystem"/>
@@ -110,7 +110,7 @@ Gw
</textFieldCell>
<prototypeCellViews>
<tableCellView identifier="chapterCountCell" id="dj8-Oz-5Hd">
<rect key="frame" x="234" y="1" width="67" height="15"/>
<rect key="frame" x="212" y="1" width="67" height="15"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="tMr-gF-MBo">
@@ -142,7 +142,7 @@ Gw
</textFieldCell>
<prototypeCellViews>
<tableCellView identifier="durationCell" id="Q3c-Ec-o9q">
<rect key="frame" x="304" y="1" width="90" height="15"/>
<rect key="frame" x="282" y="1" width="90" height="15"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Xwg-6h-rXK">
@@ -173,7 +173,7 @@ Gw
<tableColumnResizingMask key="resizingMask" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="confirmationsCell" id="ROR-C8-kNy" customClass="LevelIndicatorTableCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="397" y="1" width="96" height="15"/>
<rect key="frame" x="375" y="1" width="96" height="15"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<levelIndicator verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="GMz-ZA-5M8">
@@ -198,7 +198,7 @@ Gw
</subviews>
</clipView>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="wAd-hu-Fg8">
<rect key="frame" x="1" y="122" width="495" height="16"/>
<rect key="frame" x="1" y="129" width="458" height="16"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="DZI-g5-WqW">
@@ -206,19 +206,19 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="SPx-Rw-QAC">
<rect key="frame" x="0.0" y="0.0" width="495" height="25"/>
<rect key="frame" x="0.0" y="0.0" width="473" height="25"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="17" horizontalPageScroll="10" verticalLineScroll="17" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="Bt2-0h-SHc">
<rect key="frame" x="0.0" y="148" width="497" height="198"/>
<rect key="frame" x="0.0" y="147" width="475" height="197"/>
<autoresizingMask key="autoresizingMask"/>
<clipView key="contentView" id="QH9-eV-xqj">
<rect key="frame" x="1" y="0.0" width="495" height="197"/>
<rect key="frame" x="1" y="0.0" width="473" height="196"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="15" rowSizeStyle="automatic" headerView="L2E-eg-WH8" viewBased="YES" id="EaL-hZ-8qa">
<rect key="frame" x="0.0" y="0.0" width="495" height="172"/>
<rect key="frame" x="0.0" y="0.0" width="473" height="171"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -257,7 +257,7 @@ Gw
</tableCellView>
</prototypeCellViews>
</tableColumn>
<tableColumn identifier="name" editable="NO" width="388" minWidth="40" maxWidth="1000" id="kEl-ZX-dAp">
<tableColumn identifier="name" editable="NO" width="366" minWidth="40" maxWidth="1000" id="kEl-ZX-dAp">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Title">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
@@ -271,11 +271,11 @@ Gw
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="nameCell" id="9aB-Al-MNz">
<rect key="frame" x="105" y="1" width="388" height="15"/>
<rect key="frame" x="105" y="1" width="366" height="15"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="EM0-uf-cYI">
<rect key="frame" x="0.0" y="1" width="388" height="14"/>
<rect key="frame" x="0.0" y="1" width="366" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="V2V-18-rML">
<font key="font" metaFont="smallSystem"/>
@@ -300,7 +300,7 @@ Gw
</subviews>
</clipView>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="9Ui-9m-0Lq">
<rect key="frame" x="1" y="181" width="495" height="16"/>
<rect key="frame" x="1" y="192" width="458" height="16"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="izF-CX-eZP">
@@ -308,7 +308,7 @@ Gw
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="L2E-eg-WH8">
<rect key="frame" x="0.0" y="0.0" width="495" height="25"/>
<rect key="frame" x="0.0" y="0.0" width="473" height="25"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
@@ -322,7 +322,7 @@ Gw
<rect key="frame" x="20" y="21" width="16" height="16"/>
</progressIndicator>
<textField hidden="YES" horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="jnd-J4-PyK">
<rect key="frame" x="41" y="22" width="312" height="14"/>
<rect key="frame" x="41" y="22" width="290" height="14"/>
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Progress status" id="xUb-i4-9A1">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -330,7 +330,7 @@ Gw
</textFieldCell>
</textField>
<button horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="HL9-8j-ASe">
<rect key="frame" x="440" y="420" width="83" height="32"/>
<rect key="frame" x="418" y="418" width="83" height="32"/>
<buttonCell key="cell" type="push" title="Search" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="CPc-iU-dzR">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
@@ -340,7 +340,7 @@ Gw
</connections>
</button>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gqD-49-SVt">
<rect key="frame" x="59" y="427" width="375" height="22"/>
<rect key="frame" x="59" y="425" width="353" height="22"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Oz7-XM-SKI">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -351,7 +351,7 @@ Gw
</connections>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" preferredMaxLayoutWidth="150" translatesAutoresizingMaskIntoConstraints="NO" id="Aqm-Cr-xzu">
<rect key="frame" x="18" y="430" width="35" height="17"/>
<rect key="frame" x="18" y="428" width="35" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Title:" id="b8H-Nd-479">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -384,7 +384,7 @@ Gw
<constraint firstItem="3EA-ze-TJM" firstAttribute="leading" secondItem="gTi-Iq-Nr3" secondAttribute="trailing" constant="12" id="vTd-Bl-Rjc"/>
<constraint firstAttribute="bottom" secondItem="3EA-ze-TJM" secondAttribute="bottom" constant="20" symbolic="YES" id="zdI-AV-TEM"/>
</constraints>
<point key="canvasLocation" x="155" y="71"/>
<point key="canvasLocation" x="27" y="-55"/>
</view>
</objects>
</document>
+3 -1
View File
@@ -12,7 +12,7 @@ protocol ChapterSearchControllerDelegate : AnyObject {
func didSelect(chapters: [MP42TextSample])
}
final class ChapterSearchController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, NSTextFieldDelegate {
final class ChapterSearchController: ViewController, NSTableViewDataSource, NSTableViewDelegate, NSTextFieldDelegate {
@IBOutlet var searchTitle: NSTextField!
@@ -52,6 +52,8 @@ final class ChapterSearchController: NSViewController, NSTableViewDataSource, NS
self.state = .none
super.init(nibName: nil, bundle: nil)
self.autosave = "ChapterSearchControllerAutosaveIdentifier"
}
required init?(coder: NSCoder) {
+3 -1
View File
@@ -12,7 +12,7 @@ protocol FileImportControllerDelegate : AnyObject {
func didSelect(tracks: [MP42Track], metadata: MP42Metadata?)
}
final class FileImportController: NSViewController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
final class FileImportController: ViewController, NSTableViewDataSource, NSTableViewDelegate, NSMenuItemValidation {
private enum ItemType {
case file(MP42FileImporter)
@@ -197,6 +197,8 @@ final class FileImportController: NSViewController, NSTableViewDataSource, NSTab
self.importMetadata = metadata != nil && UserDefaults.standard.bool(forKey: "SBFileImporterImportMetadata")
super.init(nibName: nil, bundle: nil)
self.autosave = "FileImportControllerAutosaveIdentifier"
}
required init?(coder: NSCoder) {
+2 -6
View File
@@ -11,7 +11,7 @@ protocol MetadataSearchViewControllerDelegate : AnyObject {
func didSelect(metadata: MetadataResult)
}
class MetadataSearchViewController: NSViewController, MetadataSearchControllerDelegate, ArtworkSelectorControllerDelegate {
class MetadataSearchViewController: ViewController, MetadataSearchControllerDelegate, ArtworkSelectorControllerDelegate {
private let searchTerms: MetadataSearchTerms
@@ -26,18 +26,14 @@ class MetadataSearchViewController: NSViewController, MetadataSearchControllerDe
self.delegate = delegate
self.searchTerms = searchTerms
super.init(nibName: nil, bundle: nil)
self.autosave = "MetadataSearchViewControllerAutosaveIdentifier"
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override var preferredMinimumSize: NSSize {
return NSSize(width: 560, height: 600)
}
override func viewDidLoad() {
view.frame.size = preferredMinimumSize
addChild(metadataViewController)
view.addSubview(metadataViewController.view)
}
+2 -1
View File
@@ -14,8 +14,9 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<view id="HYk-Hf-rvN">
<rect key="frame" x="0.0" y="0.0" width="480" height="270"/>
<rect key="frame" x="0.0" y="0.0" width="540" height="520"/>
<autoresizingMask key="autoresizingMask"/>
<point key="canvasLocation" x="111.5" y="68.5"/>
</view>
</objects>
</document>
+35
View File
@@ -0,0 +1,35 @@
//
// ViewController.swift
// Subler
//
// Created by Damiano Galassi on 07/08/2019.
//
import Cocoa
class ViewController: NSViewController, NSWindowDelegate {
// MARK: - Interface Builder
@IBInspectable var autosave: String?
// MARK: - NSViewController
override func viewWillAppear() {
super.viewWillAppear()
guard let window = self.view.window, let saveName = autosave else { return }
window.delegate = self
window.setFrameUsingName(saveName)
}
// MARK: - NSWindowDelegate
func windowDidEndLiveResize(_ notification: Notification) {
guard let saveName = autosave else {
return
}
self.view.window?.saveFrame(usingName: saveName)
}
}
+4
View File
@@ -41,6 +41,7 @@
A92AD0161F3482350082892E /* NetworkUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92AD0151F3482350082892E /* NetworkUtilities.swift */; };
A92BBAB41F557CC0007EA182 /* PresetEditorViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92BBAB21F557CC0007EA182 /* PresetEditorViewController.swift */; };
A92BBABE1F5584EA007EA182 /* PresetEditorViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A92BBABC1F558388007EA182 /* PresetEditorViewController.xib */; };
A92CE72522FAFED0000962A4 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92CE72422FAFED0000962A4 /* ViewController.swift */; };
A92ECCE31F49984C0063BFBD /* PrefsWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A92ECCE21F49984C0063BFBD /* PrefsWindowController.swift */; };
A93105391F9758EC00605146 /* FileImportController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A93105351F9758EC00605146 /* FileImportController.xib */; };
A932C9F3205C268A004E52FE /* QueueScriptCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = A932C9F2205C268A004E52FE /* QueueScriptCommand.swift */; };
@@ -255,6 +256,7 @@
A92AD0151F3482350082892E /* NetworkUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = NetworkUtilities.swift; path = Classes/NetworkUtilities.swift; sourceTree = "<group>"; };
A92BBAB21F557CC0007EA182 /* PresetEditorViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PresetEditorViewController.swift; path = Classes/PresetEditorViewController.swift; sourceTree = "<group>"; };
A92BBABD1F558388007EA182 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/Base.lproj/PresetEditorViewController.xib; sourceTree = "<group>"; };
A92CE72422FAFED0000962A4 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = Classes/ViewController.swift; sourceTree = "<group>"; };
A92ECCE21F49984C0063BFBD /* PrefsWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = PrefsWindowController.swift; path = Classes/PrefsWindowController.swift; sourceTree = "<group>"; };
A93105361F9758EC00605146 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/FileImportController.xib; sourceTree = "<group>"; };
A932C9F2205C268A004E52FE /* QueueScriptCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueueScriptCommand.swift; path = Classes/QueueScriptCommand.swift; sourceTree = "<group>"; };
@@ -464,6 +466,7 @@
2A37F4AFFDCFA73011CA2CEA /* Other Sources */ = {
isa = PBXGroup;
children = (
A92CE72422FAFED0000962A4 /* ViewController.swift */,
A9F804591FB6F4FD0069FF43 /* ImageBrowserView.swift */,
A909440E1DD4C85B00E9F89C /* Table View */,
A9A77C4D1F306FA70018023B /* AttributedStyles.swift */,
@@ -902,6 +905,7 @@
A9859ACE1F4B43CC00022828 /* QueuePreset.swift in Sources */,
A9F2A2662026EACD00C4B69A /* DetailsViewController.swift in Sources */,
A932C9F3205C268A004E52FE /* QueueScriptCommand.swift in Sources */,
A92CE72522FAFED0000962A4 /* ViewController.swift in Sources */,
A9915AC31F4B293B003C57D1 /* PresetManager.swift in Sources */,
A90BC5E31F3A139700F9F3F3 /* MetadataResult.swift in Sources */,
A99189CD1F2F87EC00623ED7 /* ChapterImporter.swift in Sources */,