Preliminary work to replace the deprecated IKImageBrowserView with a NSCollectionView
This commit is contained in:
3 files changed
+403
-310
No files matched your search
@@ -1,15 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="17505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22154" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17505"/>
|
||||
<plugIn identifier="com.apple.imagekit.ibplugin" version="17505"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22154"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="PresetEditorViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="artworksView" destination="217" id="yBS-St-WKT"/>
|
||||
<outlet property="artworksView" destination="X1Q-FV-NoM" id="Scg-AY-dDL"/>
|
||||
<outlet property="keepAnnotations" destination="7Bp-pc-g7o" id="cvi-hs-cuy"/>
|
||||
<outlet property="keepArtworks" destination="dAO-nk-B30" id="PAC-kM-wUR"/>
|
||||
<outlet property="metadataTableView" destination="qg5-r0-E4V" id="MI2-BK-D1m"/>
|
||||
@@ -27,90 +26,50 @@
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView misplaced="YES" id="1">
|
||||
<rect key="frame" x="0.0" y="0.0" width="690" height="419"/>
|
||||
<customView id="1">
|
||||
<rect key="frame" x="0.0" y="0.0" width="676" height="373"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<scrollView focusRingType="none" autohidesScrollers="YES" horizontalLineScroll="110" horizontalPageScroll="10" verticalLineScroll="110" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="214">
|
||||
<rect key="frame" x="20" y="271" width="179" height="112"/>
|
||||
<clipView key="contentView" copiesOnScroll="NO" id="7IP-Gn-Bxd">
|
||||
<rect key="frame" x="1" y="1" width="177" height="110"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<ikImageBrowserView autoresizesSubviews="NO" zoomValue="1" allowsReordering="YES" animates="YES" translatesAutoresizingMaskIntoConstraints="NO" id="217" customClass="ImageBrowserView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="162" height="110"/>
|
||||
<autoresizingMask key="contentResizingMask" heightSizable="YES"/>
|
||||
<size key="cellSize" width="90" height="90"/>
|
||||
<connections>
|
||||
<outlet property="_dataSource" destination="-2" id="222"/>
|
||||
<outlet property="_delegate" destination="-2" id="221"/>
|
||||
<outlet property="_dragDestinationDelegate" destination="-2" id="233"/>
|
||||
<outlet property="dataSource" destination="-2" id="219"/>
|
||||
<outlet property="delegate" destination="-2" id="220"/>
|
||||
<outlet property="dragDestinationDelegate" destination="-2" id="234"/>
|
||||
</connections>
|
||||
</ikImageBrowserView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="217" firstAttribute="leading" secondItem="7IP-Gn-Bxd" secondAttribute="leading" id="LVW-dT-moS"/>
|
||||
<constraint firstAttribute="trailing" secondItem="217" secondAttribute="trailing" id="WP8-RG-hCU"/>
|
||||
<constraint firstItem="217" firstAttribute="top" secondItem="7IP-Gn-Bxd" secondAttribute="top" id="ibZ-cj-Upy"/>
|
||||
<constraint firstAttribute="bottom" secondItem="217" secondAttribute="bottom" id="xat-aY-EQY"/>
|
||||
</constraints>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="216">
|
||||
<rect key="frame" x="-100" y="-100" width="438" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="215">
|
||||
<rect key="frame" x="163" y="1" width="15" height="110"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
<button toolTip="Add an artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
|
||||
<rect key="frame" x="20" y="242" width="25" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="25" id="PQ5-Tu-VFK"/>
|
||||
<constraint firstAttribute="height" constant="20" id="nbn-sF-RRs"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="20" y="58" width="25" height="22"/>
|
||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="oYK-j2-5dM"/>
|
||||
<constraint firstAttribute="width" constant="25" id="rcu-X5-nFG"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<action selector="selectArtwork:" target="-2" id="232"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button toolTip="Remove selected artwork" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
|
||||
<rect key="frame" x="44" y="242" width="25" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="25" id="FBv-tK-Tdv"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="44" y="58" width="25" height="22"/>
|
||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="25" id="CRL-bR-7Ew"/>
|
||||
<constraint firstAttribute="height" constant="20" id="ni3-qc-LeG"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<action selector="removeArtwork:" target="-2" id="231"/>
|
||||
</connections>
|
||||
</button>
|
||||
<slider toolTip="Change artworks view zoom" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="235">
|
||||
<rect key="frame" x="117" y="245" width="84" height="17"/>
|
||||
<rect key="frame" x="117" y="59" width="84" height="20"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="13" id="ZuS-Gb-IY3"/>
|
||||
<constraint firstAttribute="width" constant="80" id="mBx-7u-wTU"/>
|
||||
<constraint firstAttribute="width" constant="80" id="QRF-MH-hBi"/>
|
||||
</constraints>
|
||||
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" maxValue="2" doubleValue="1" tickMarkPosition="above" sliderType="linear" id="236"/>
|
||||
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" maxValue="100" doubleValue="50" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="236"/>
|
||||
<connections>
|
||||
<action selector="zoomSliderDidChange:" target="-2" id="237"/>
|
||||
</connections>
|
||||
</slider>
|
||||
<popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30">
|
||||
<rect key="frame" x="207" y="242" width="32" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="oAx-ac-cJp"/>
|
||||
<constraint firstAttribute="width" constant="32" id="vkQ-JQ-9ET"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="207" y="58" width="32" height="22"/>
|
||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" id="31">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="message" size="11"/>
|
||||
@@ -122,30 +81,32 @@
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="FwO-uK-Ro2"/>
|
||||
<constraint firstAttribute="width" constant="32" id="OwN-pr-6cc"/>
|
||||
</constraints>
|
||||
<accessibility description="Add metadata item"/>
|
||||
<connections>
|
||||
<action selector="addTag:" target="-2" id="37"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
|
||||
<rect key="frame" x="238" y="242" width="24" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="24" id="0TW-Pw-B6h"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="238" y="58" width="24" height="22"/>
|
||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="EIo-Lg-ZeL"/>
|
||||
<constraint firstAttribute="width" constant="24" id="s0Y-ye-DSo"/>
|
||||
</constraints>
|
||||
<accessibility description="Remove selected item"/>
|
||||
<connections>
|
||||
<action selector="removeTag:" target="-2" id="55"/>
|
||||
</connections>
|
||||
</button>
|
||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="179">
|
||||
<rect key="frame" x="270" y="242" width="35" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="35" id="4Dk-P7-dKe"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="270" y="58" width="35" height="22"/>
|
||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="184" id="180">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="message" size="11"/>
|
||||
@@ -157,16 +118,20 @@
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="35" id="8JP-5S-7Ff"/>
|
||||
<constraint firstAttribute="height" constant="20" id="SNb-1F-FBI"/>
|
||||
</constraints>
|
||||
<accessibility description="Sets"/>
|
||||
</popUpButton>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r4i-wT-qDC">
|
||||
<rect key="frame" x="207" y="271" width="448" height="112"/>
|
||||
<rect key="frame" x="208" y="87" width="448" height="250"/>
|
||||
<clipView key="contentView" id="cQT-bX-0YB">
|
||||
<rect key="frame" x="1" y="1" width="446" height="110"/>
|
||||
<rect key="frame" x="1" y="1" width="446" height="248"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="446" height="87"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="446" height="225"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -189,7 +154,7 @@
|
||||
<rect key="frame" x="1" y="1" width="123" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="3000" translatesAutoresizingMaskIntoConstraints="NO" id="hcf-2a-yEU">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="3000" translatesAutoresizingMaskIntoConstraints="NO" id="hcf-2a-yEU">
|
||||
<rect key="frame" x="0.0" y="0.0" width="123" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="uNy-4D-PA4">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
@@ -210,7 +175,7 @@
|
||||
</tableCellView>
|
||||
</prototypeCellViews>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="value" width="313" minWidth="40" maxWidth="4000" id="os0-Yb-exW">
|
||||
<tableColumn identifier="value" width="284" minWidth="40" maxWidth="4000" id="os0-Yb-exW">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value">
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -223,11 +188,11 @@
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
<prototypeCellViews>
|
||||
<tableCellView identifier="TextCell" id="mjh-te-NdK">
|
||||
<rect key="frame" x="127" y="1" width="317" height="14"/>
|
||||
<rect key="frame" x="127" y="1" width="288" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
|
||||
<rect key="frame" x="0.0" y="0.0" width="317" height="14"/>
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
|
||||
<rect key="frame" x="0.0" y="0.0" width="288" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Do not localize" id="WRR-52-lxo">
|
||||
<font key="font" metaFont="message" size="11"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -249,11 +214,11 @@
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="TextCellForSizing" id="OUW-Fk-klv">
|
||||
<rect key="frame" x="127" y="17" width="317" height="14"/>
|
||||
<rect key="frame" x="127" y="17" width="288" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
|
||||
<rect key="frame" x="0.0" y="0.0" width="317" height="14"/>
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
|
||||
<rect key="frame" x="0.0" y="0.0" width="288" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" title="Do not localize" id="ipR-OL-rI2">
|
||||
<font key="font" metaFont="message" size="11"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -272,11 +237,11 @@
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="PopUpCell" id="JEU-aR-J9v" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="127" y="33" width="317" height="14"/>
|
||||
<rect key="frame" x="127" y="33" width="288" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM">
|
||||
<rect key="frame" x="-5" y="-2" width="316" height="18"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="282" height="14"/>
|
||||
<popUpButtonCell key="cell" type="bevel" title="Do not localize" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="message" size="11"/>
|
||||
@@ -301,11 +266,11 @@
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="BoolCell" id="DGy-Nb-PAN" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="127" y="49" width="317" height="17"/>
|
||||
<rect key="frame" x="127" y="49" width="288" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh">
|
||||
<rect key="frame" x="2" y="-1" width="313" height="19"/>
|
||||
<rect key="frame" x="2" y="-1" width="284" height="19"/>
|
||||
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="message" size="11"/>
|
||||
@@ -326,11 +291,11 @@
|
||||
</connections>
|
||||
</tableCellView>
|
||||
<tableCellView identifier="ComboCell" id="vy5-48-Vip" customClass="ComboBoxCellView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="127" y="68" width="317" height="17"/>
|
||||
<rect key="frame" x="127" y="68" width="288" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<comboBox verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
|
||||
<rect key="frame" x="3" y="0.0" width="314" height="19"/>
|
||||
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
|
||||
<rect key="frame" x="2" y="0.0" width="282" height="19"/>
|
||||
<comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" title="Do not localize" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn">
|
||||
<font key="font" metaFont="message" size="11"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -342,7 +307,7 @@
|
||||
</comboBox>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="LbC-r6-Pau" secondAttribute="trailing" constant="3" id="D3s-8h-ERd"/>
|
||||
<constraint firstAttribute="trailing" secondItem="LbC-r6-Pau" secondAttribute="trailing" constant="6" id="D3s-8h-ERd"/>
|
||||
<constraint firstItem="LbC-r6-Pau" firstAttribute="top" secondItem="vy5-48-Vip" secondAttribute="top" constant="-1" id="Pu1-dO-vMz"/>
|
||||
<constraint firstItem="LbC-r6-Pau" firstAttribute="leading" secondItem="vy5-48-Vip" secondAttribute="leading" constant="3" id="ucU-54-7Da"/>
|
||||
</constraints>
|
||||
@@ -374,8 +339,8 @@
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</tableHeaderView>
|
||||
</scrollView>
|
||||
<textField verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="RvM-No-Mwg">
|
||||
<rect key="frame" x="18" y="393" width="639" height="16"/>
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" setsMaxLayoutWidthAtFirstLayout="YES" translatesAutoresizingMaskIntoConstraints="NO" id="RvM-No-Mwg">
|
||||
<rect key="frame" x="18" y="347" width="640" height="16"/>
|
||||
<textFieldCell key="cell" sendsActionOnEndEditing="YES" title="Title" id="CD8-S4-C35">
|
||||
<font key="font" metaFont="systemBold"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -383,8 +348,8 @@
|
||||
</textFieldCell>
|
||||
<accessibility description="Preset Title"/>
|
||||
</textField>
|
||||
<button horizontalHuggingPriority="249" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="Bmy-64-g1U">
|
||||
<rect key="frame" x="18" y="22.5" width="164" height="201.5"/>
|
||||
<button horizontalHuggingPriority="248" horizontalCompressionResistancePriority="751" translatesAutoresizingMaskIntoConstraints="NO" id="Bmy-64-g1U">
|
||||
<rect key="frame" x="18" y="22" width="163" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Keep existing artworks" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="2ur-nu-rZh">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -394,7 +359,7 @@
|
||||
</connections>
|
||||
</button>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="aKt-Ed-1jG">
|
||||
<rect key="frame" x="192" y="22" width="179" height="18"/>
|
||||
<rect key="frame" x="191" y="22" width="182" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Keep existing annotations" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="KxJ-Zr-uiZ">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -404,57 +369,85 @@
|
||||
</connections>
|
||||
</button>
|
||||
<button toolTip="Dismiss" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="87e-za-hJV">
|
||||
<rect key="frame" x="564" y="13" width="98" height="32"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="84" id="je8-48-wqx"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="565" y="13" width="98" height="32"/>
|
||||
<buttonCell key="cell" type="push" title="OK" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="xfY-4F-IAd">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="84" id="ott-8M-DKY"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<action selector="done:" target="-2" id="brz-hy-FCn"/>
|
||||
</connections>
|
||||
</button>
|
||||
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3Ac-rb-Kn1">
|
||||
<rect key="frame" x="20" y="87" width="180" height="250"/>
|
||||
<clipView key="contentView" id="TgI-Xw-0Sc">
|
||||
<rect key="frame" x="1" y="1" width="178" height="248"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<collectionView selectable="YES" allowsMultipleSelection="YES" id="X1Q-FV-NoM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="178" height="158"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="iEX-Ks-G24">
|
||||
<size key="itemSize" width="154" height="192"/>
|
||||
<edgeInsets key="sectionInset" left="8" right="8" top="8" bottom="8"/>
|
||||
</collectionViewFlowLayout>
|
||||
<color key="primaryBackgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="6ch-Ak-BrR"/>
|
||||
<outlet property="delegate" destination="-2" id="rDv-ZN-70M"/>
|
||||
</connections>
|
||||
</collectionView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="180" id="6GC-t1-q3l"/>
|
||||
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="250" id="gws-VF-4As"/>
|
||||
</constraints>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="Xhj-sN-0a4">
|
||||
<rect key="frame" x="1" y="233" width="178" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="iuv-zI-HOf">
|
||||
<rect key="frame" x="234" y="1" width="15" height="143"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="aKt-Ed-1jG" firstAttribute="leading" secondItem="Bmy-64-g1U" secondAttribute="trailing" constant="12" id="0rm-xV-X2q"/>
|
||||
<constraint firstAttribute="trailing" secondItem="RvM-No-Mwg" secondAttribute="trailing" constant="20" id="1Va-CN-zbu"/>
|
||||
<constraint firstItem="30" firstAttribute="top" secondItem="r4i-wT-qDC" secondAttribute="bottom" constant="8" id="1cN-A6-DML"/>
|
||||
<constraint firstItem="226" firstAttribute="leading" secondItem="223" secondAttribute="trailing" constant="-1" id="1xM-xd-JZx"/>
|
||||
<constraint firstItem="179" firstAttribute="height" secondItem="30" secondAttribute="height" id="2iL-wI-2Td"/>
|
||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="leading" secondItem="214" secondAttribute="trailing" constant="8" id="3aP-mW-M99"/>
|
||||
<constraint firstItem="214" firstAttribute="leading" secondItem="223" secondAttribute="leading" id="8qJ-q6-YTI"/>
|
||||
<constraint firstItem="30" firstAttribute="top" secondItem="53" secondAttribute="top" id="DYc-mW-b5i"/>
|
||||
<constraint firstItem="53" firstAttribute="leading" secondItem="30" secondAttribute="trailing" constant="-1" id="FBY-p6-xRg"/>
|
||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="height" secondItem="214" secondAttribute="height" id="G6F-JE-LXB"/>
|
||||
<constraint firstItem="30" firstAttribute="bottom" secondItem="53" secondAttribute="bottom" id="GOr-kX-FUg"/>
|
||||
<constraint firstItem="214" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" id="H7k-hn-CdS"/>
|
||||
<constraint firstAttribute="trailing" secondItem="87e-za-hJV" secondAttribute="trailing" constant="20" id="HIo-iU-4tU"/>
|
||||
<constraint firstItem="214" firstAttribute="top" secondItem="RvM-No-Mwg" secondAttribute="bottom" constant="10" id="HiE-yr-uAd"/>
|
||||
<constraint firstItem="223" firstAttribute="top" secondItem="214" secondAttribute="bottom" constant="8" symbolic="YES" id="IEB-dw-mxV"/>
|
||||
<constraint firstItem="87e-za-hJV" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="aKt-Ed-1jG" secondAttribute="trailing" constant="200" id="KZg-JP-zG6"/>
|
||||
<constraint firstItem="235" firstAttribute="leading" secondItem="226" secondAttribute="trailing" constant="50" id="Lba-d0-LbS"/>
|
||||
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="8" symbolic="YES" id="Pce-M4-AsA"/>
|
||||
<constraint firstItem="235" firstAttribute="top" secondItem="214" secondAttribute="bottom" constant="11" id="SJ7-1w-44C"/>
|
||||
<constraint firstItem="30" firstAttribute="baseline" secondItem="179" secondAttribute="baseline" id="ZUr-SP-5pG"/>
|
||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="leading" secondItem="3Ac-rb-Kn1" secondAttribute="trailing" constant="8" symbolic="YES" id="1cm-wR-oSm"/>
|
||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="firstBaseline" secondItem="aKt-Ed-1jG" secondAttribute="firstBaseline" id="1vd-dr-ZyG"/>
|
||||
<constraint firstItem="223" firstAttribute="top" secondItem="3Ac-rb-Kn1" secondAttribute="bottom" constant="8" symbolic="YES" id="74e-Mf-nNB"/>
|
||||
<constraint firstItem="226" firstAttribute="leading" secondItem="223" secondAttribute="trailing" constant="-1" id="7tB-nW-cen"/>
|
||||
<constraint firstItem="223" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="8Zj-EW-Vyb"/>
|
||||
<constraint firstItem="235" firstAttribute="centerY" secondItem="226" secondAttribute="centerY" id="CbE-lC-Wv3"/>
|
||||
<constraint firstItem="30" firstAttribute="leading" secondItem="235" secondAttribute="trailing" constant="8" symbolic="YES" id="F2d-dE-tnx"/>
|
||||
<constraint firstItem="30" firstAttribute="centerY" secondItem="53" secondAttribute="centerY" id="Gb1-qz-uOA"/>
|
||||
<constraint firstItem="3Ac-rb-Kn1" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="HAd-d5-Zqq"/>
|
||||
<constraint firstAttribute="bottom" secondItem="87e-za-hJV" secondAttribute="bottom" constant="20" symbolic="YES" id="KmM-wz-0vL"/>
|
||||
<constraint firstItem="235" firstAttribute="leading" secondItem="226" secondAttribute="trailing" constant="50" id="PPb-LG-b6P"/>
|
||||
<constraint firstItem="235" firstAttribute="centerY" secondItem="30" secondAttribute="centerY" id="Rt6-r3-gRX"/>
|
||||
<constraint firstItem="53" firstAttribute="leading" secondItem="30" secondAttribute="trailing" constant="-1" id="SLY-iP-zbc"/>
|
||||
<constraint firstItem="3Ac-rb-Kn1" firstAttribute="top" secondItem="RvM-No-Mwg" secondAttribute="bottom" constant="10" id="U9m-z8-qMt"/>
|
||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" symbolic="YES" id="XWe-w9-IAz"/>
|
||||
<constraint firstItem="RvM-No-Mwg" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" id="a5X-ng-Nlh"/>
|
||||
<constraint firstItem="214" firstAttribute="trailing" secondItem="235" secondAttribute="trailing" id="bxo-td-dJA"/>
|
||||
<constraint firstAttribute="bottom" secondItem="87e-za-hJV" secondAttribute="bottom" constant="20" id="fcm-DG-LTD"/>
|
||||
<constraint firstItem="226" firstAttribute="centerY" secondItem="235" secondAttribute="centerY" constant="0.5" id="frK-tC-iz9"/>
|
||||
<constraint firstItem="30" firstAttribute="leading" secondItem="r4i-wT-qDC" secondAttribute="leading" id="iEU-eB-qAY"/>
|
||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="top" secondItem="223" secondAttribute="bottom" constant="20" id="beI-tF-PTE"/>
|
||||
<constraint firstItem="226" firstAttribute="centerY" secondItem="223" secondAttribute="centerY" id="eWE-NB-Wul"/>
|
||||
<constraint firstItem="87e-za-hJV" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="aKt-Ed-1jG" secondAttribute="trailing" constant="8" symbolic="YES" id="fIT-dN-zIE"/>
|
||||
<constraint firstAttribute="trailing" secondItem="87e-za-hJV" secondAttribute="trailing" constant="20" id="hm1-Tx-JAI"/>
|
||||
<constraint firstItem="r4i-wT-qDC" firstAttribute="top" secondItem="RvM-No-Mwg" secondAttribute="bottom" constant="10" id="iqg-eq-k2z"/>
|
||||
<constraint firstItem="aKt-Ed-1jG" firstAttribute="firstBaseline" secondItem="87e-za-hJV" secondAttribute="firstBaseline" id="jRn-Mm-dWK"/>
|
||||
<constraint firstItem="RvM-No-Mwg" firstAttribute="top" secondItem="1" secondAttribute="top" constant="10" id="k2D-op-c65"/>
|
||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" id="qAb-Dd-pI7"/>
|
||||
<constraint firstItem="214" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="20" id="qWI-0C-Qws"/>
|
||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="top" secondItem="223" secondAttribute="bottom" constant="20" id="qrZ-0l-Y3P"/>
|
||||
<constraint firstItem="87e-za-hJV" firstAttribute="baseline" secondItem="aKt-Ed-1jG" secondAttribute="baseline" id="s76-W1-8He"/>
|
||||
<constraint firstItem="Bmy-64-g1U" firstAttribute="baseline" secondItem="aKt-Ed-1jG" secondAttribute="baseline" id="t7P-Nv-3Km"/>
|
||||
<constraint firstItem="30" firstAttribute="top" secondItem="r4i-wT-qDC" secondAttribute="bottom" constant="8" symbolic="YES" id="kzG-BO-fiE"/>
|
||||
<constraint firstItem="53" firstAttribute="centerY" secondItem="179" secondAttribute="centerY" id="prk-Ob-Q8v"/>
|
||||
<constraint firstAttribute="trailing" secondItem="r4i-wT-qDC" secondAttribute="trailing" constant="20" id="w3O-Hw-KeB"/>
|
||||
<constraint firstItem="aKt-Ed-1jG" firstAttribute="leading" secondItem="Bmy-64-g1U" secondAttribute="trailing" constant="12" id="wuH-nS-yRA"/>
|
||||
<constraint firstItem="179" firstAttribute="height" secondItem="53" secondAttribute="height" id="y03-bD-271"/>
|
||||
<constraint firstItem="226" firstAttribute="height" secondItem="223" secondAttribute="height" id="zYN-5B-279"/>
|
||||
<constraint firstItem="179" firstAttribute="leading" secondItem="53" secondAttribute="trailing" constant="8" symbolic="YES" id="wzu-l1-8QD"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="517" y="117"/>
|
||||
<point key="canvasLocation" x="105.5" y="117"/>
|
||||
</customView>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" animationBehavior="default" id="167" userLabel="Preset Save">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
||||
@@ -465,7 +458,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="436" height="139"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="173">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="173">
|
||||
<rect key="frame" x="17" y="103" width="44" height="16"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Name:" id="174">
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -473,7 +466,7 @@
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="171">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="171">
|
||||
<rect key="frame" x="67" y="100" width="349" height="21"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="176">
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -508,7 +501,7 @@ Gw
|
||||
</connections>
|
||||
</button>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="dAO-nk-B30">
|
||||
<rect key="frame" x="65" y="75" width="164" height="18"/>
|
||||
<rect key="frame" x="65" y="75" width="163" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Keep existing artworks" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="CHk-xu-U9f">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -548,8 +541,8 @@ Gw
|
||||
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="NSActionTemplate" width="15" height="15"/>
|
||||
<image name="NSAddTemplate" width="14" height="13"/>
|
||||
<image name="NSRemoveTemplate" width="14" height="4"/>
|
||||
<image name="NSActionTemplate" width="20" height="20"/>
|
||||
<image name="NSAddTemplate" width="18" height="17"/>
|
||||
<image name="NSRemoveTemplate" width="18" height="5"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -1,15 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="17506" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22154" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17506"/>
|
||||
<plugIn identifier="com.apple.imagekit.ibplugin" version="17506"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22154"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="MovieViewController" customModule="Subler" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="artworksView" destination="217" id="yBS-St-WKT"/>
|
||||
<outlet property="artworksView" destination="HHe-zs-flI" id="O8d-Ne-wVv"/>
|
||||
<outlet property="keepAnnotations" destination="7hc-Ee-1yE" id="nf3-GF-FwY"/>
|
||||
<outlet property="keepArtworks" destination="Ild-x7-pnx" id="RDj-V5-llN"/>
|
||||
<outlet property="metadataTableView" destination="qg5-r0-E4V" id="MI2-BK-D1m"/>
|
||||
@@ -25,23 +24,20 @@
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView misplaced="YES" id="1">
|
||||
<rect key="frame" x="0.0" y="0.0" width="767" height="417"/>
|
||||
<customView id="1">
|
||||
<rect key="frame" x="0.0" y="0.0" width="769" height="293"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<tabView misplaced="YES" controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="10">
|
||||
<rect key="frame" x="-11" y="-12" width="791" height="412"/>
|
||||
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="10">
|
||||
<rect key="frame" x="-11" y="-12" width="791" height="300"/>
|
||||
<tabViewItems>
|
||||
<tabViewItem label="Metadata" identifier="1" id="11">
|
||||
<view key="view" id="12">
|
||||
<rect key="frame" x="10" y="29" width="771" height="370"/>
|
||||
<rect key="frame" x="10" y="25" width="771" height="239"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<popUpButton toolTip="Add a new metadata item" translatesAutoresizingMaskIntoConstraints="NO" id="30">
|
||||
<rect key="frame" x="17" y="7" width="29" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="oAx-ac-cJp"/>
|
||||
</constraints>
|
||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" pullsDown="YES" id="31">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu" size="11"/>
|
||||
@@ -53,6 +49,9 @@
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="oAx-ac-cJp"/>
|
||||
</constraints>
|
||||
<accessibility description="Add metadata item"/>
|
||||
<connections>
|
||||
<action selector="addTag:" target="-2" id="37"/>
|
||||
@@ -60,13 +59,13 @@
|
||||
</popUpButton>
|
||||
<button toolTip="Remove selected item" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="53">
|
||||
<rect key="frame" x="45" y="7" width="24" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="24" id="0TW-Pw-B6h"/>
|
||||
</constraints>
|
||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="24" id="0TW-Pw-B6h"/>
|
||||
</constraints>
|
||||
<accessibility description="Remove selected item"/>
|
||||
<connections>
|
||||
<action selector="removeTag:" target="-2" id="55"/>
|
||||
@@ -74,9 +73,6 @@
|
||||
</button>
|
||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="179">
|
||||
<rect key="frame" x="77" y="7" width="33" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="33" id="ZIk-ID-MnW"/>
|
||||
</constraints>
|
||||
<popUpButtonCell key="cell" type="smallSquare" bezelStyle="smallSquare" alignment="center" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" pullsDown="YES" selectedItem="184" id="180">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu" size="11"/>
|
||||
@@ -88,16 +84,19 @@
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="33" id="ZIk-ID-MnW"/>
|
||||
</constraints>
|
||||
<accessibility description="Sets"/>
|
||||
</popUpButton>
|
||||
<scrollView misplaced="YES" autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r4i-wT-qDC">
|
||||
<rect key="frame" x="17" y="32" width="737" height="328"/>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r4i-wT-qDC">
|
||||
<rect key="frame" x="17" y="36" width="737" height="197"/>
|
||||
<clipView key="contentView" id="cQT-bX-0YB">
|
||||
<rect key="frame" x="1" y="1" width="735" height="326"/>
|
||||
<rect key="frame" x="1" y="1" width="735" height="195"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="plain" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="735" height="303"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="735" height="172"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -120,7 +119,7 @@
|
||||
<rect key="frame" x="1" y="1" width="118" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="3000" translatesAutoresizingMaskIntoConstraints="NO" id="hcf-2a-yEU">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="3000" translatesAutoresizingMaskIntoConstraints="NO" id="hcf-2a-yEU">
|
||||
<rect key="frame" x="0.0" y="0.0" width="118" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="uNy-4D-PA4">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
@@ -157,7 +156,7 @@
|
||||
<rect key="frame" x="122" y="1" width="611" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
|
||||
<rect key="frame" x="0.0" y="0.0" width="611" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Do not localize" id="WRR-52-lxo">
|
||||
<font key="font" metaFont="menu" size="11"/>
|
||||
@@ -183,7 +182,7 @@
|
||||
<rect key="frame" x="122" y="17" width="611" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
|
||||
<rect key="frame" x="0.0" y="0.0" width="611" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" title="Do not localize" id="ipR-OL-rI2">
|
||||
<font key="font" metaFont="menu" size="11"/>
|
||||
@@ -206,9 +205,8 @@
|
||||
<rect key="frame" x="122" y="33" width="611" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM">
|
||||
<rect key="frame" x="0.0" y="-2" width="605" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM">
|
||||
<rect key="frame" x="0.0" y="-2" width="603" height="18"/>
|
||||
<popUpButtonCell key="cell" type="bevel" title="Do not localize" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu" size="11"/>
|
||||
@@ -223,6 +221,12 @@
|
||||
</connections>
|
||||
</popUpButton>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="cFv-4U-VzM" secondAttribute="trailing" constant="8" id="5Vp-9B-30w"/>
|
||||
<constraint firstItem="cFv-4U-VzM" firstAttribute="top" secondItem="JEU-aR-J9v" secondAttribute="top" constant="-2" id="AhG-VJ-c10"/>
|
||||
<constraint firstItem="cFv-4U-VzM" firstAttribute="centerY" secondItem="JEU-aR-J9v" secondAttribute="centerY" id="h8j-4q-9KN"/>
|
||||
<constraint firstItem="cFv-4U-VzM" firstAttribute="leading" secondItem="JEU-aR-J9v" secondAttribute="leading" id="zvX-yv-pgh"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="popUpButton" destination="cFv-4U-VzM" id="ELP-zT-lga"/>
|
||||
</connections>
|
||||
@@ -231,9 +235,8 @@
|
||||
<rect key="frame" x="122" y="49" width="611" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh">
|
||||
<rect key="frame" x="0.0" y="-1" width="610" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh">
|
||||
<rect key="frame" x="0.0" y="-2" width="611" height="21"/>
|
||||
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="menu" size="11"/>
|
||||
@@ -243,6 +246,12 @@
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="oyk-jS-zmh" firstAttribute="top" secondItem="DGy-Nb-PAN" secondAttribute="top" id="Hxb-yt-s4J"/>
|
||||
<constraint firstItem="oyk-jS-zmh" firstAttribute="centerY" secondItem="DGy-Nb-PAN" secondAttribute="centerY" id="Ng8-nI-5pf"/>
|
||||
<constraint firstItem="oyk-jS-zmh" firstAttribute="leading" secondItem="DGy-Nb-PAN" secondAttribute="leading" constant="1" id="XhK-Dq-Xfi"/>
|
||||
<constraint firstItem="oyk-jS-zmh" firstAttribute="centerX" secondItem="DGy-Nb-PAN" secondAttribute="centerX" id="rPc-CI-x5w"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="checkboxButton" destination="oyk-jS-zmh" id="8Ei-w1-gg3"/>
|
||||
</connections>
|
||||
@@ -251,9 +260,8 @@
|
||||
<rect key="frame" x="122" y="68" width="611" height="19"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<comboBox verticalHuggingPriority="750" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
|
||||
<rect key="frame" x="3" y="0.0" width="609" height="19"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
|
||||
<rect key="frame" x="-1" y="0.0" width="606" height="19"/>
|
||||
<comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" title="Do not localize" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn">
|
||||
<font key="font" metaFont="menu" size="11"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -264,6 +272,11 @@
|
||||
</connections>
|
||||
</comboBox>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstAttribute="trailing" secondItem="LbC-r6-Pau" secondAttribute="trailing" constant="8" id="BTU-8W-noB"/>
|
||||
<constraint firstItem="LbC-r6-Pau" firstAttribute="leading" secondItem="vy5-48-Vip" secondAttribute="leading" id="dql-VU-0Wy"/>
|
||||
<constraint firstItem="LbC-r6-Pau" firstAttribute="centerY" secondItem="vy5-48-Vip" secondAttribute="centerY" id="fD6-Ra-03v"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="comboBox" destination="LbC-r6-Pau" id="COL-w1-MbN"/>
|
||||
</connections>
|
||||
@@ -312,95 +325,89 @@
|
||||
</tabViewItem>
|
||||
<tabViewItem label="Artwork" identifier="Item 1" id="15">
|
||||
<view key="view" id="16">
|
||||
<rect key="frame" x="10" y="25" width="771" height="374"/>
|
||||
<rect key="frame" x="10" y="25" width="771" height="262"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<scrollView focusRingType="none" autohidesScrollers="YES" horizontalLineScroll="88" horizontalPageScroll="10" verticalLineScroll="88" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="214">
|
||||
<rect key="frame" x="17" y="278" width="574" height="90"/>
|
||||
<clipView key="contentView" copiesOnScroll="NO" id="7IP-Gn-Bxd">
|
||||
<rect key="frame" x="1" y="1" width="572" height="88"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<ikImageBrowserView autoresizesSubviews="NO" zoomValue="1" allowsReordering="YES" animates="YES" translatesAutoresizingMaskIntoConstraints="NO" id="217" customClass="ImageBrowserView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="557" height="88"/>
|
||||
<autoresizingMask key="contentResizingMask" heightSizable="YES"/>
|
||||
<size key="cellSize" width="68" height="68"/>
|
||||
<connections>
|
||||
<outlet property="_dataSource" destination="-2" id="222"/>
|
||||
<outlet property="_delegate" destination="-2" id="221"/>
|
||||
<outlet property="_dragDestinationDelegate" destination="-2" id="233"/>
|
||||
<outlet property="dataSource" destination="-2" id="219"/>
|
||||
<outlet property="delegate" destination="-2" id="220"/>
|
||||
<outlet property="dragDestinationDelegate" destination="-2" id="234"/>
|
||||
</connections>
|
||||
</ikImageBrowserView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="217" firstAttribute="leading" secondItem="7IP-Gn-Bxd" secondAttribute="leading" id="LVW-dT-moS"/>
|
||||
<constraint firstAttribute="trailing" secondItem="217" secondAttribute="trailing" id="WP8-RG-hCU"/>
|
||||
<constraint firstItem="217" firstAttribute="top" secondItem="7IP-Gn-Bxd" secondAttribute="top" id="ibZ-cj-Upy"/>
|
||||
<constraint firstAttribute="bottom" secondItem="217" secondAttribute="bottom" id="xat-aY-EQY"/>
|
||||
</constraints>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="216">
|
||||
<rect key="frame" x="-100" y="-100" width="438" height="15"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="215">
|
||||
<rect key="frame" x="432" y="1" width="15" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="223">
|
||||
<rect key="frame" x="17" y="249" width="25" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="25" id="PQ5-Tu-VFK"/>
|
||||
<constraint firstAttribute="height" constant="20" id="nbn-sF-RRs"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="17" y="7" width="25" height="22"/>
|
||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSAddTemplate" imagePosition="overlaps" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="224">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="25" id="PQ5-Tu-VFK"/>
|
||||
<constraint firstAttribute="height" constant="20" id="nbn-sF-RRs"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<action selector="selectArtwork:" target="-2" id="232"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="226">
|
||||
<rect key="frame" x="41" y="249" width="25" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="25" id="FBv-tK-Tdv"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="41" y="7" width="25" height="22"/>
|
||||
<buttonCell key="cell" type="smallSquare" bezelStyle="smallSquare" image="NSRemoveTemplate" imagePosition="overlaps" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="227">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="25" id="FBv-tK-Tdv"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<action selector="removeArtwork:" target="-2" id="231"/>
|
||||
</connections>
|
||||
</button>
|
||||
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="235">
|
||||
<rect key="frame" x="474" y="251" width="119" height="20"/>
|
||||
<rect key="frame" x="635" y="9" width="119" height="20"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="115" id="mBx-7u-wTU"/>
|
||||
</constraints>
|
||||
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" maxValue="2" doubleValue="1" tickMarkPosition="above" sliderType="linear" id="236"/>
|
||||
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" maxValue="100" doubleValue="50" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="236"/>
|
||||
<connections>
|
||||
<action selector="zoomSliderDidChange:" target="-2" id="237"/>
|
||||
</connections>
|
||||
</slider>
|
||||
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WUe-C3-hRA">
|
||||
<rect key="frame" x="17" y="36" width="737" height="220"/>
|
||||
<clipView key="contentView" id="jau-dn-6LI">
|
||||
<rect key="frame" x="1" y="1" width="735" height="218"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<collectionView selectable="YES" allowsMultipleSelection="YES" id="HHe-zs-flI" customClass="CollectionView" customModule="Subler" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="735" height="218"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="ofy-8i-tTx">
|
||||
<size key="itemSize" width="280" height="260"/>
|
||||
<edgeInsets key="sectionInset" left="16" right="16" top="16" bottom="16"/>
|
||||
</collectionViewFlowLayout>
|
||||
<color key="primaryBackgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="9He-XR-q1Q"/>
|
||||
<outlet property="delegate" destination="-2" id="Hbr-7D-S2p"/>
|
||||
</connections>
|
||||
</collectionView>
|
||||
</subviews>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="ppL-2w-hmG">
|
||||
<rect key="frame" x="-100" y="-100" width="735" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="bD2-5M-Iiz">
|
||||
<rect key="frame" x="234" y="1" width="15" height="143"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
</scrollView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="214" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="17" id="4FA-0p-Olg"/>
|
||||
<constraint firstAttribute="trailing" secondItem="235" secondAttribute="trailing" constant="19" id="0hC-mb-MlL"/>
|
||||
<constraint firstItem="226" firstAttribute="centerY" secondItem="223" secondAttribute="centerY" id="5a5-e8-dAP"/>
|
||||
<constraint firstAttribute="bottom" secondItem="223" secondAttribute="bottom" constant="8" id="BgF-RQ-nc8"/>
|
||||
<constraint firstItem="226" firstAttribute="centerY" secondItem="235" secondAttribute="centerY" constant="0.5" id="IHP-mq-pja"/>
|
||||
<constraint firstItem="223" firstAttribute="top" secondItem="214" secondAttribute="bottom" constant="8" symbolic="YES" id="Omx-Vr-JKg"/>
|
||||
<constraint firstItem="214" firstAttribute="top" secondItem="16" secondAttribute="top" constant="6" id="Pfx-al-MJd"/>
|
||||
<constraint firstItem="214" firstAttribute="leading" secondItem="223" secondAttribute="leading" id="Xbu-J3-MGE"/>
|
||||
<constraint firstItem="WUe-C3-hRA" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="17" id="Lvi-Ls-dwm"/>
|
||||
<constraint firstAttribute="trailing" secondItem="WUe-C3-hRA" secondAttribute="trailing" constant="17" id="Wbo-yN-xLN"/>
|
||||
<constraint firstItem="226" firstAttribute="height" secondItem="223" secondAttribute="height" id="bRk-bc-DiM"/>
|
||||
<constraint firstItem="WUe-C3-hRA" firstAttribute="top" secondItem="16" secondAttribute="top" constant="6" id="fGU-nu-khr"/>
|
||||
<constraint firstItem="223" firstAttribute="top" secondItem="WUe-C3-hRA" secondAttribute="bottom" constant="8" symbolic="YES" id="juc-Kd-k1q"/>
|
||||
<constraint firstItem="226" firstAttribute="leading" secondItem="223" secondAttribute="trailing" constant="-1" id="mSU-ml-jzw"/>
|
||||
<constraint firstItem="214" firstAttribute="trailing" secondItem="235" secondAttribute="trailing" id="uWI-rx-Mmh"/>
|
||||
<constraint firstAttribute="trailing" secondItem="214" secondAttribute="trailing" constant="17" id="zZm-R8-SeH"/>
|
||||
<constraint firstItem="223" firstAttribute="leading" secondItem="16" secondAttribute="leading" constant="17" id="yTy-Iz-roe"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</tabViewItem>
|
||||
@@ -413,7 +420,7 @@
|
||||
<constraint firstItem="10" firstAttribute="leading" secondItem="1" secondAttribute="leading" constant="-4" id="W2u-1d-KH8"/>
|
||||
<constraint firstAttribute="bottom" secondItem="10" secondAttribute="bottom" constant="-2" id="gd6-eJ-5fo"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="231.5" y="154.5"/>
|
||||
<point key="canvasLocation" x="35" y="6"/>
|
||||
</customView>
|
||||
<userDefaultsController representsSharedInstance="YES" id="z7a-RX-pNz"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" animationBehavior="default" id="ZRj-hi-qeJ" userLabel="Preset Save">
|
||||
@@ -425,7 +432,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="436" height="139"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VHc-Eh-XSb">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VHc-Eh-XSb">
|
||||
<rect key="frame" x="17" y="103" width="44" height="16"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Name:" id="ZqF-j8-NeN">
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -433,7 +440,7 @@
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="866-MG-GR3">
|
||||
<textField focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="866-MG-GR3">
|
||||
<rect key="frame" x="67" y="100" width="349" height="21"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="QYb-JQ-zG1">
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -468,7 +475,7 @@ Gw
|
||||
</connections>
|
||||
</button>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="Ild-x7-pnx">
|
||||
<rect key="frame" x="65" y="75" width="164" height="18"/>
|
||||
<rect key="frame" x="65" y="75" width="163" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Keep existing artworks" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="doa-uZ-CNr">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -507,8 +514,8 @@ Gw
|
||||
</window>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="NSActionTemplate" width="15" height="15"/>
|
||||
<image name="NSAddTemplate" width="14" height="13"/>
|
||||
<image name="NSRemoveTemplate" width="14" height="4"/>
|
||||
<image name="NSActionTemplate" width="20" height="20"/>
|
||||
<image name="NSAddTemplate" width="18" height="17"/>
|
||||
<image name="NSRemoveTemplate" width="18" height="5"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -9,7 +9,12 @@ import Cocoa
|
||||
import Quartz
|
||||
import MP42Foundation
|
||||
|
||||
class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableViewDelegate, ImageBrowserViewDelegate, NSDraggingDestination {
|
||||
extension NSPasteboard.PasteboardType {
|
||||
static let metadataDragType = NSPasteboard.PasteboardType("org.subler.metadatadragdrop")
|
||||
static let artworkDragType = NSPasteboard.PasteboardType("org.subler.artworkdragdrop")
|
||||
}
|
||||
|
||||
class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableViewDelegate, NSCollectionViewDataSource, NSCollectionViewDelegate, NSDraggingDestination {
|
||||
|
||||
var metadata: MP42Metadata {
|
||||
didSet {
|
||||
@@ -46,8 +51,6 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
@IBOutlet var removeTagButton: NSButton!
|
||||
@IBOutlet var metadataTableView: ExpandedTableView!
|
||||
|
||||
private let metadataPBoardType = NSPasteboard.PasteboardType(rawValue: "SublerMetadataPBoardTypeV2")
|
||||
|
||||
// Set save window
|
||||
@IBOutlet var saveSetWindow: NSWindow!
|
||||
@IBOutlet var saveSetName: NSTextField!
|
||||
@@ -56,11 +59,10 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
|
||||
// Artwork tab
|
||||
private var artworks: [MP42MetadataItem]
|
||||
private let standardSize = NSSize(width: 154, height: 192)
|
||||
|
||||
@IBOutlet var removeArtworkButton: NSButton!
|
||||
@IBOutlet var artworksView: ImageBrowserView!
|
||||
|
||||
private let artworksPBoardType = NSPasteboard.PasteboardType(rawValue: "SublerCoverArtPBoardType")
|
||||
@IBOutlet var artworksView: NSCollectionView!
|
||||
|
||||
override var nibName: NSNib.Name? {
|
||||
return "MovieView"
|
||||
@@ -94,7 +96,6 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
deinit {
|
||||
artworksView.delegate = nil
|
||||
artworksView.dataSource = nil
|
||||
artworksView.setDraggingDestinationDelegate(nil)
|
||||
NotificationCenter.default.removeObserver(self)
|
||||
}
|
||||
|
||||
@@ -118,11 +119,11 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
|
||||
metadataTableView.doubleAction = #selector(doubleClickAction(_:))
|
||||
metadataTableView.target = self
|
||||
metadataTableView.pasteboardTypes = [metadataPBoardType]
|
||||
metadataTableView.pasteboardTypes = [.metadataDragType]
|
||||
metadataTableView.scrollRowToVisible(0)
|
||||
|
||||
artworksView.pasteboardTypes = [artworksPBoardType, NSPasteboard.PasteboardType.tiff, NSPasteboard.PasteboardType.png]
|
||||
artworksView.setZoomValue(1.0)
|
||||
artworksView.register(ArtworkSelectorViewItem.self, forItemWithIdentifier: ArtworkSelectorController.itemView)
|
||||
artworksView.registerForDraggedTypes([.artworkDragType, .tiff, .png])
|
||||
|
||||
reloadData()
|
||||
}
|
||||
@@ -744,9 +745,9 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
let description = itemsDescriptions.reduce("") {$0 + $1 }
|
||||
|
||||
let pb = NSPasteboard.general
|
||||
pb.declareTypes([.string, metadataPBoardType], owner: nil)
|
||||
pb.declareTypes([.string, .metadataDragType], owner: nil)
|
||||
pb.setString(description, forType: .string)
|
||||
pb.setData(NSKeyedArchiver.archivedData(withRootObject: items), forType: metadataPBoardType)
|
||||
pb.setData(NSKeyedArchiver.archivedData(withRootObject: items), forType: .metadataDragType)
|
||||
}
|
||||
|
||||
func cutSelection(in tableview: NSTableView) {
|
||||
@@ -756,7 +757,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
|
||||
func paste(to tableview: NSTableView) {
|
||||
let pb = NSPasteboard.general
|
||||
if let archivedData = pb.data(forType: metadataPBoardType),
|
||||
if let archivedData = pb.data(forType: .metadataDragType),
|
||||
let data = NSKeyedUnarchiver.unarchiveObject(with: archivedData) as? [MP42MetadataItem] {
|
||||
add(metadataItems: data)
|
||||
}
|
||||
@@ -878,8 +879,9 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
}
|
||||
|
||||
@IBAction func removeArtwork(_ sender: Any?) {
|
||||
imageBrowser(artworksView, removeItemsAt: artworksView.selectionIndexes())
|
||||
artworksView.reloadData()
|
||||
let selectedIndexes = artworksView.selectionIndexes
|
||||
artworks = IndexSet(artworks.indices).subtracting(selectedIndexes).map {artworks[$0]}
|
||||
artworksView.deleteItems(at: artworksView.selectionIndexPaths)
|
||||
}
|
||||
|
||||
private func add(artworks: [Any]) -> Bool {
|
||||
@@ -926,95 +928,186 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: IKImageBrowserDataSource
|
||||
// MARK: - Data source
|
||||
|
||||
override func numberOfItems(inImageBrowser aBrowser: IKImageBrowserView!) -> Int {
|
||||
func collectionView(_ collectionView: NSCollectionView, numberOfItemsInSection section: Int) -> Int {
|
||||
return artworks.count
|
||||
}
|
||||
|
||||
override func imageBrowser(_ aBrowser: IKImageBrowserView!, itemAt index: Int) -> Any! {
|
||||
return artworks[index].imageValue
|
||||
static let itemView = NSUserInterfaceItemIdentifier(rawValue: "ArtworkSelectorViewItem")
|
||||
|
||||
func collectionView(_ collectionView: NSCollectionView, itemForRepresentedObjectAt indexPath: IndexPath) -> NSCollectionViewItem {
|
||||
let item = collectionView.makeItem(withIdentifier: ArtworkSelectorController.itemView, for: indexPath)
|
||||
guard let collectionViewItem = item as? ArtworkSelectorViewItem, let index = indexPath.last else { return item }
|
||||
|
||||
let artwork = artworks[index]
|
||||
|
||||
collectionViewItem.image = artwork.imageValue?.image
|
||||
collectionViewItem.target = self
|
||||
collectionViewItem.title = ""
|
||||
collectionViewItem.subtitle = ""
|
||||
|
||||
return collectionViewItem
|
||||
}
|
||||
|
||||
override func imageBrowser(_ aBrowser: IKImageBrowserView!, moveItemsAt indexes: IndexSet!, to destinationIndex: Int) -> Bool {
|
||||
let destinationIndex = destinationIndex - indexes.count(in: 0..<destinationIndex)
|
||||
// MARK: - Delegate
|
||||
|
||||
let items = indexes.map { artworks[$0] }
|
||||
var modifiedArtworks = IndexSet(artworks.indices).subtracting(indexes).map { artworks[$0] }
|
||||
private func updateSelection() {
|
||||
removeArtworkButton.isEnabled = artworksView.selectionIndexPaths.isEmpty ? false : true
|
||||
}
|
||||
|
||||
for item in items.reversed() {
|
||||
modifiedArtworks.insert(item, at: destinationIndex)
|
||||
}
|
||||
func collectionView(_ collectionView: NSCollectionView, didSelectItemsAt indexPaths: Set<IndexPath>) {
|
||||
updateSelection()
|
||||
}
|
||||
|
||||
replace(metadataArtworks: artworks, withItems: modifiedArtworks)
|
||||
func collectionView(_ collectionView: NSCollectionView, didDeselectItemsAt indexPaths: Set<IndexPath>) {
|
||||
updateSelection()
|
||||
}
|
||||
|
||||
func collectionView(_ collectionView: NSCollectionView, canDragItemsAt indexPaths: Set<IndexPath>, with event: NSEvent) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
override func imageBrowser(_ aBrowser: IKImageBrowserView!, writeItemsAt itemIndexes: IndexSet!, to pasteboard: NSPasteboard!) -> Int {
|
||||
pasteboard.declareTypes([artworksPBoardType, .tiff], owner: nil)
|
||||
|
||||
for image in itemIndexes.map({ artworks[$0] }).compactMap({ $0.imageValue }) {
|
||||
if let representations = image.image?.representations {
|
||||
let bitmapData = NSBitmapImageRep.representationOfImageReps(in: representations, using: .tiff, properties: [:])
|
||||
pasteboard.setData(bitmapData, forType: .tiff)
|
||||
}
|
||||
pasteboard.setData(NSKeyedArchiver.archivedData(withRootObject: image), forType: artworksPBoardType)
|
||||
}
|
||||
|
||||
return itemIndexes.count
|
||||
func collectionView(_ collectionView: NSCollectionView, writeItemsAt indexPaths: Set<IndexPath>, to pasteboard: NSPasteboard) -> Bool {
|
||||
pasteboard.declareTypes([.artworkDragType], owner: nil)
|
||||
pasteboard.setData(NSKeyedArchiver.archivedData(withRootObject: indexPaths), forType: .artworkDragType)
|
||||
return indexPaths.isEmpty == false
|
||||
}
|
||||
|
||||
func paste(to imagebrowserview: ImageBrowserView) {
|
||||
let pb = NSPasteboard.general
|
||||
func collectionView(_ collectionView: NSCollectionView,
|
||||
validateDrop draggingInfo: NSDraggingInfo,
|
||||
proposedIndexPath proposedDropIndexPath: AutoreleasingUnsafeMutablePointer<NSIndexPath>,
|
||||
dropOperation proposedDropOperation: UnsafeMutablePointer<NSCollectionView.DropOperation>) -> NSDragOperation {
|
||||
return .generic
|
||||
}
|
||||
|
||||
if let archivedImageData = pb.data(forType: artworksPBoardType), let image = NSKeyedUnarchiver.unarchiveObject(with: archivedImageData) as? MP42Image {
|
||||
_ = add(artworks: [image])
|
||||
func dropInternalArtworks(_ collectionView: NSCollectionView, draggingInfo: NSDraggingInfo, indexPath: IndexPath) {
|
||||
draggingInfo.enumerateDraggingItems(
|
||||
options: NSDraggingItemEnumerationOptions.concurrent,
|
||||
for: collectionView,
|
||||
classes: [NSPasteboardItem.self],
|
||||
searchOptions: [:],
|
||||
using: {(draggingItem, idx, stop) in
|
||||
if let pasteboardItem = draggingItem.item as? NSPasteboardItem {
|
||||
do {
|
||||
if let indexPathData = pasteboardItem.data(forType: .artworkDragType),
|
||||
let artworkIndexPath = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(indexPathData) as? Set<IndexPath> {
|
||||
print(artworkIndexPath)
|
||||
}
|
||||
} catch {
|
||||
Swift.debugPrint("failed to unarchive indexPath for dropped photo item.")
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func dropExternalArtworks(_ collectionView: NSCollectionView, draggingInfo: NSDraggingInfo, indexPath: IndexPath) {
|
||||
// Do things
|
||||
}
|
||||
|
||||
func collectionView(_ collectionView: NSCollectionView,
|
||||
acceptDrop draggingInfo: NSDraggingInfo,
|
||||
indexPath: IndexPath,
|
||||
dropOperation: NSCollectionView.DropOperation) -> Bool {
|
||||
// Check where the dragged items are coming from.
|
||||
if let draggingSource = draggingInfo.draggingSource as? NSCollectionView, draggingSource == collectionView {
|
||||
// Drag source from your own collection view.
|
||||
// Move each dragged photo item to their new place.
|
||||
dropInternalArtworks(collectionView, draggingInfo: draggingInfo, indexPath: indexPath)
|
||||
} else {
|
||||
let classes = [NSURL.classForCoder(), NSImage.classForCoder()]
|
||||
let options = [NSPasteboard.ReadingOptionKey.urlReadingContentsConformToTypes: NSImage.imageTypes]
|
||||
if let items = pb.readObjects(forClasses: classes, options: options) as [AnyObject]? {
|
||||
_ = add(artworks: items)
|
||||
}
|
||||
// The drop source is from another app (Finder, Mail, Safari, etc.) and there may be more than one file.
|
||||
// Drop each dragged image file to their new place.
|
||||
dropExternalArtworks(collectionView, draggingInfo: draggingInfo, indexPath: indexPath)
|
||||
}
|
||||
}
|
||||
|
||||
override func imageBrowser(_ aBrowser: IKImageBrowserView!, removeItemsAt indexes: IndexSet!) {
|
||||
let items = indexes.map { artworks[$0] }
|
||||
remove(metadataArtworks: items)
|
||||
}
|
||||
|
||||
// MARK: IKImageBrowserDelegate
|
||||
|
||||
override func imageBrowserSelectionDidChange(_ aBrowser: IKImageBrowserView!) {
|
||||
let rowIndexes = aBrowser.selectionIndexes()
|
||||
removeArtworkButton.isEnabled = rowIndexes?.isEmpty ?? false ? false : true
|
||||
return true
|
||||
}
|
||||
|
||||
@IBAction func zoomSliderDidChange(_ sender: NSControl) {
|
||||
artworksView.setZoomValue(sender.floatValue)
|
||||
}
|
||||
let floatValue = CGFloat(sender.floatValue)
|
||||
if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout {
|
||||
if floatValue == 50 {
|
||||
layout.itemSize = standardSize
|
||||
} else if floatValue < 50 {
|
||||
let zoomValue = (floatValue + 50) / 100
|
||||
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
|
||||
height: Int((standardSize.height - 32) * zoomValue + 32))
|
||||
|
||||
// MARK: Artworks drag & drop
|
||||
|
||||
func draggingEntered(_ sender: NSDraggingInfo) -> NSDragOperation {
|
||||
return .generic
|
||||
}
|
||||
|
||||
func draggingUpdated(_ sender: NSDraggingInfo) -> NSDragOperation {
|
||||
return .generic
|
||||
}
|
||||
|
||||
func performDragOperation(_ sender: NSDraggingInfo) -> Bool {
|
||||
let pb = sender.draggingPasteboard
|
||||
|
||||
let classes = [NSURL.classForCoder(), NSImage.classForCoder()]
|
||||
let options = [NSPasteboard.ReadingOptionKey.urlReadingContentsConformToTypes: NSImage.imageTypes]
|
||||
if let items = pb.readObjects(forClasses: classes, options: options) as [AnyObject]? {
|
||||
return add(artworks: items)
|
||||
} else {
|
||||
return false
|
||||
} else {
|
||||
let zoomValue = pow((floatValue + 50) / 100, 2.4)
|
||||
layout.itemSize = NSSize(width: Int(standardSize.width * zoomValue),
|
||||
height: Int((standardSize.height - 32) * zoomValue + 32))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func concludeDragOperation(_ sender: NSDraggingInfo?) {}
|
||||
// override func imageBrowser(_ aBrowser: IKImageBrowserView!, moveItemsAt indexes: IndexSet!, to destinationIndex: Int) -> Bool {
|
||||
// let destinationIndex = destinationIndex - indexes.count(in: 0..<destinationIndex)
|
||||
//
|
||||
// let items = indexes.map { artworks[$0] }
|
||||
// var modifiedArtworks = IndexSet(artworks.indices).subtracting(indexes).map { artworks[$0] }
|
||||
//
|
||||
// for item in items.reversed() {
|
||||
// modifiedArtworks.insert(item, at: destinationIndex)
|
||||
// }
|
||||
//
|
||||
// replace(metadataArtworks: artworks, withItems: modifiedArtworks)
|
||||
// return true
|
||||
// }
|
||||
//
|
||||
// override func imageBrowser(_ aBrowser: IKImageBrowserView!, writeItemsAt itemIndexes: IndexSet!, to pasteboard: NSPasteboard!) -> Int {
|
||||
// pasteboard.declareTypes([artworksPBoardType, .tiff], owner: nil)
|
||||
//
|
||||
// for image in itemIndexes.map({ artworks[$0] }).compactMap({ $0.imageValue }) {
|
||||
// if let representations = image.image?.representations {
|
||||
// let bitmapData = NSBitmapImageRep.representationOfImageReps(in: representations, using: .tiff, properties: [:])
|
||||
// pasteboard.setData(bitmapData, forType: .tiff)
|
||||
// }
|
||||
// pasteboard.setData(NSKeyedArchiver.archivedData(withRootObject: image), forType: artworksPBoardType)
|
||||
// }
|
||||
//
|
||||
// return itemIndexes.count
|
||||
// }
|
||||
//
|
||||
// func paste(to imagebrowserview: ImageBrowserView) {
|
||||
// let pb = NSPasteboard.general
|
||||
//
|
||||
// if let archivedImageData = pb.data(forType: artworksPBoardType), let image = NSKeyedUnarchiver.unarchiveObject(with: archivedImageData) as? MP42Image {
|
||||
// _ = add(artworks: [image])
|
||||
// } else {
|
||||
// let classes = [NSURL.classForCoder(), NSImage.classForCoder()]
|
||||
// let options = [NSPasteboard.ReadingOptionKey.urlReadingContentsConformToTypes: NSImage.imageTypes]
|
||||
// if let items = pb.readObjects(forClasses: classes, options: options) as [AnyObject]? {
|
||||
// _ = add(artworks: items)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// override func imageBrowser(_ aBrowser: IKImageBrowserView!, removeItemsAt indexes: IndexSet!) {
|
||||
// let items = indexes.map { artworks[$0] }
|
||||
// remove(metadataArtworks: items)
|
||||
// }
|
||||
|
||||
// // MARK: Artworks drag & drop
|
||||
//
|
||||
// func draggingEntered(_ sender: NSDraggingInfo) -> NSDragOperation {
|
||||
// return .generic
|
||||
// }
|
||||
//
|
||||
// func draggingUpdated(_ sender: NSDraggingInfo) -> NSDragOperation {
|
||||
// return .generic
|
||||
// }
|
||||
//
|
||||
// func performDragOperation(_ sender: NSDraggingInfo) -> Bool {
|
||||
// let pb = sender.draggingPasteboard
|
||||
//
|
||||
// let classes = [NSURL.classForCoder(), NSImage.classForCoder()]
|
||||
// let options = [NSPasteboard.ReadingOptionKey.urlReadingContentsConformToTypes: NSImage.imageTypes]
|
||||
// if let items = pb.readObjects(forClasses: classes, options: options) as [AnyObject]? {
|
||||
// return add(artworks: items)
|
||||
// } else {
|
||||
// return false
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// func concludeDragOperation(_ sender: NSDraggingInfo?) {}
|
||||
}
|
||||
Reference in new issue
Block a user