Rework ArtworkSelectorController to use a NSCollectionView instead of the deprecated IKImageBrowserView on 10.11+
This commit is contained in:
12 files changed
+771
-73
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"filename" : "placeholder.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"filename" : "placeholder@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
@@ -1,16 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14269.14" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment version="101100" identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14269.14"/>
|
||||||
<plugIn identifier="com.apple.imagekit.ibplugin" version="11535.1"/>
|
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="SBArtworkSelector">
|
<customObject id="-2" userLabel="File's Owner" customClass="ArtworkSelectorController" customModule="Subler" customModuleProvider="target">
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="addArtworkButton" destination="9" id="46"/>
|
<outlet property="addArtworkButton" destination="9" id="46"/>
|
||||||
<outlet property="imageBrowser" destination="11" id="45"/>
|
<outlet property="imageBrowser" destination="dsp-Oy-lJU" id="MJV-to-bBM"/>
|
||||||
<outlet property="loadMoreArtworkButton" destination="7" id="48"/>
|
<outlet property="loadMoreArtworkButton" destination="7" id="48"/>
|
||||||
<outlet property="slider" destination="8" id="43"/>
|
<outlet property="slider" destination="8" id="43"/>
|
||||||
<outlet property="window" destination="3" id="37"/>
|
<outlet property="window" destination="3" id="37"/>
|
||||||
@@ -18,7 +17,7 @@
|
|||||||
</customObject>
|
</customObject>
|
||||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" showsToolbarButton="NO" visibleAtLaunch="NO" frameAutosaveName="artworkWindow" animationBehavior="default" id="3">
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" frameAutosaveName="artworkWindow" animationBehavior="default" id="3">
|
||||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
|
||||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||||
<rect key="contentRect" x="227" y="346" width="480" height="380"/>
|
<rect key="contentRect" x="227" y="346" width="480" height="380"/>
|
||||||
@@ -28,41 +27,6 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
|
<rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="188.66667175292969" horizontalPageScroll="10" verticalLineScroll="168" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="10">
|
|
||||||
<rect key="frame" x="20" y="84" width="440" height="276"/>
|
|
||||||
<clipView key="contentView" copiesOnScroll="NO" id="fMP-TL-qIZ">
|
|
||||||
<rect key="frame" x="1" y="1" width="438" height="274"/>
|
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
||||||
<subviews>
|
|
||||||
<ikImageBrowserView autoresizesSubviews="NO" zoomValue="0.7821539044380188" translatesAutoresizingMaskIntoConstraints="NO" id="11">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="438" height="274"/>
|
|
||||||
<ikCellsStyle key="cellsStyleMask" shadowed="YES" titled="YES" subtitled="YES"/>
|
|
||||||
<autoresizingMask key="contentResizingMask" heightSizable="YES"/>
|
|
||||||
<size key="cellSize" width="148" height="148"/>
|
|
||||||
<connections>
|
|
||||||
<outlet property="_dataSource" destination="-2" id="39"/>
|
|
||||||
<outlet property="_delegate" destination="-2" id="40"/>
|
|
||||||
<outlet property="dataSource" destination="-2" id="41"/>
|
|
||||||
<outlet property="delegate" destination="-2" id="42"/>
|
|
||||||
</connections>
|
|
||||||
</ikImageBrowserView>
|
|
||||||
</subviews>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="trailing" secondItem="11" secondAttribute="trailing" id="GpQ-w0-pL3"/>
|
|
||||||
<constraint firstAttribute="bottom" secondItem="11" secondAttribute="bottom" id="Wx5-oU-I0v"/>
|
|
||||||
<constraint firstItem="11" firstAttribute="top" secondItem="fMP-TL-qIZ" secondAttribute="top" id="te2-aY-Xqb"/>
|
|
||||||
<constraint firstItem="11" firstAttribute="leading" secondItem="fMP-TL-qIZ" secondAttribute="leading" id="wbB-Cq-7RD"/>
|
|
||||||
</constraints>
|
|
||||||
</clipView>
|
|
||||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="12">
|
|
||||||
<rect key="frame" x="-100" y="-100" width="438" height="15"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
</scroller>
|
|
||||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="13">
|
|
||||||
<rect key="frame" x="424" y="1" width="15" height="250"/>
|
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
|
||||||
</scroller>
|
|
||||||
</scrollView>
|
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9">
|
||||||
<rect key="frame" x="338" y="12" width="128" height="32"/>
|
<rect key="frame" x="338" y="12" width="128" height="32"/>
|
||||||
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="14">
|
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="14">
|
||||||
@@ -81,7 +45,7 @@ DQ
|
|||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" constant="96" id="0Mf-Un-HXH"/>
|
<constraint firstAttribute="width" constant="96" id="0Mf-Un-HXH"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" minValue="0.20000000000000001" maxValue="1" doubleValue="0.60000000000000009" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="15"/>
|
<sliderCell key="cell" controlSize="small" continuous="YES" alignment="left" minValue="100" maxValue="500" doubleValue="250" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="15"/>
|
||||||
<accessibility description="Zoom"/>
|
<accessibility description="Zoom"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="zoomSliderDidChange:" target="-2" id="44"/>
|
<action selector="zoomSliderDidChange:" target="-2" id="44"/>
|
||||||
@@ -112,26 +76,58 @@ Gw
|
|||||||
<action selector="addNoArtwork:" target="-2" id="51"/>
|
<action selector="addNoArtwork:" target="-2" id="51"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
|
<scrollView wantsLayer="YES" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1V5-n3-xKs">
|
||||||
|
<rect key="frame" x="20" y="75" width="440" height="285"/>
|
||||||
|
<clipView key="contentView" drawsBackground="NO" id="5rm-GN-VhB">
|
||||||
|
<rect key="frame" x="1" y="1" width="438" height="283"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<collectionView selectable="YES" allowsMultipleSelection="YES" id="dsp-Oy-lJU" customClass="CollectionView" customModule="Subler" customModuleProvider="target">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="438" height="283"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
|
||||||
|
<collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="jsh-bc-hMg">
|
||||||
|
<size key="itemSize" width="154" height="194"/>
|
||||||
|
<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="oM6-JY-ET6"/>
|
||||||
|
<outlet property="delegate" destination="-2" id="uBZ-z7-Rag"/>
|
||||||
|
</connections>
|
||||||
|
</collectionView>
|
||||||
|
</subviews>
|
||||||
|
</clipView>
|
||||||
|
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="VPu-d7-Ls1">
|
||||||
|
<rect key="frame" x="-100" y="-100" width="372" height="16"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
</scroller>
|
||||||
|
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="63w-uG-eHg">
|
||||||
|
<rect key="frame" x="403" y="1" width="16" height="251"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
</scroller>
|
||||||
|
</scrollView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="trailing" secondItem="10" secondAttribute="trailing" constant="20" symbolic="YES" id="2dF-3S-sSa"/>
|
|
||||||
<constraint firstItem="9" firstAttribute="top" secondItem="8" secondAttribute="bottom" constant="10" id="42t-0L-Sim"/>
|
<constraint firstItem="9" firstAttribute="top" secondItem="8" secondAttribute="bottom" constant="10" id="42t-0L-Sim"/>
|
||||||
<constraint firstItem="9" firstAttribute="leading" secondItem="49" secondAttribute="trailing" constant="12" symbolic="YES" id="9KU-rV-HX6"/>
|
<constraint firstItem="9" firstAttribute="leading" secondItem="49" secondAttribute="trailing" constant="12" symbolic="YES" id="9KU-rV-HX6"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="9" secondAttribute="trailing" constant="20" id="Afl-w6-Sam"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="7" secondAttribute="bottom" constant="19" id="Ef2-6N-v4D"/>
|
<constraint firstAttribute="bottom" secondItem="7" secondAttribute="bottom" constant="19" id="Ef2-6N-v4D"/>
|
||||||
<constraint firstItem="8" firstAttribute="top" secondItem="10" secondAttribute="bottom" constant="17" id="KQW-kp-ljW"/>
|
|
||||||
<constraint firstItem="49" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="7" secondAttribute="trailing" constant="66" id="KZN-qg-yUG"/>
|
<constraint firstItem="49" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="7" secondAttribute="trailing" constant="66" id="KZN-qg-yUG"/>
|
||||||
|
<constraint firstItem="1V5-n3-xKs" firstAttribute="top" secondItem="4" secondAttribute="top" constant="20" id="Sbz-On-xIY"/>
|
||||||
|
<constraint firstItem="7" firstAttribute="leading" secondItem="4" secondAttribute="leading" constant="20" id="UkB-GM-zr7"/>
|
||||||
<constraint firstItem="7" firstAttribute="baseline" secondItem="49" secondAttribute="baseline" id="X0P-3j-fGS"/>
|
<constraint firstItem="7" firstAttribute="baseline" secondItem="49" secondAttribute="baseline" id="X0P-3j-fGS"/>
|
||||||
|
<constraint firstItem="1V5-n3-xKs" firstAttribute="leading" secondItem="4" secondAttribute="leading" constant="20" id="YA3-u4-Re0"/>
|
||||||
|
<constraint firstItem="8" firstAttribute="top" secondItem="1V5-n3-xKs" secondAttribute="bottom" constant="8" id="d0O-3L-94x"/>
|
||||||
<constraint firstItem="8" firstAttribute="trailing" secondItem="9" secondAttribute="trailing" id="fJ9-o3-pFG"/>
|
<constraint firstItem="8" firstAttribute="trailing" secondItem="9" secondAttribute="trailing" id="fJ9-o3-pFG"/>
|
||||||
<constraint firstItem="10" firstAttribute="top" secondItem="4" secondAttribute="top" constant="20" symbolic="YES" id="kpP-bZ-e5s"/>
|
<constraint firstAttribute="trailing" secondItem="1V5-n3-xKs" secondAttribute="trailing" constant="20" id="hz6-yA-FD7"/>
|
||||||
<constraint firstItem="10" firstAttribute="leading" secondItem="4" secondAttribute="leading" constant="20" symbolic="YES" id="qpm-9U-Mxg"/>
|
|
||||||
<constraint firstItem="49" firstAttribute="baseline" secondItem="9" secondAttribute="baseline" id="s1P-63-ywo"/>
|
<constraint firstItem="49" firstAttribute="baseline" secondItem="9" secondAttribute="baseline" id="s1P-63-ywo"/>
|
||||||
<constraint firstItem="10" firstAttribute="trailing" secondItem="8" secondAttribute="trailing" id="tg4-M3-k3B"/>
|
|
||||||
<constraint firstItem="10" firstAttribute="leading" secondItem="7" secondAttribute="leading" id="vgS-hd-TsB"/>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="delegate" destination="-2" id="35"/>
|
<outlet property="delegate" destination="-2" id="35"/>
|
||||||
</connections>
|
</connections>
|
||||||
|
<point key="canvasLocation" x="154" y="-19"/>
|
||||||
</window>
|
</window>
|
||||||
|
<collectionViewItem id="tcm-Rs-Ndm" customClass="ArtworkSelectorViewItem" customModule="Subler" customModuleProvider="target"/>
|
||||||
</objects>
|
</objects>
|
||||||
</document>
|
</document>
|
||||||
Executable
+137
@@ -0,0 +1,137 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14269.14" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="macosx"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14269.14"/>
|
||||||
|
<plugIn identifier="com.apple.imagekit.ibplugin" version="14269.14"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<objects>
|
||||||
|
<customObject id="-2" userLabel="File's Owner" customClass="ArtworkSelectorControllerOldStyle" customModule="Subler" customModuleProvider="target">
|
||||||
|
<connections>
|
||||||
|
<outlet property="addArtworkButton" destination="9" id="46"/>
|
||||||
|
<outlet property="imageBrowser" destination="11" id="45"/>
|
||||||
|
<outlet property="loadMoreArtworkButton" destination="7" id="48"/>
|
||||||
|
<outlet property="slider" destination="8" id="43"/>
|
||||||
|
<outlet property="window" destination="3" id="37"/>
|
||||||
|
</connections>
|
||||||
|
</customObject>
|
||||||
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" visibleAtLaunch="NO" frameAutosaveName="artworkWindow" animationBehavior="default" id="3">
|
||||||
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" resizable="YES"/>
|
||||||
|
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||||
|
<rect key="contentRect" x="227" y="346" width="480" height="380"/>
|
||||||
|
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
|
||||||
|
<value key="minSize" type="size" width="480" height="380"/>
|
||||||
|
<view key="contentView" id="4">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="480" height="380"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<subviews>
|
||||||
|
<scrollView autohidesScrollers="YES" horizontalLineScroll="188.66667175292969" horizontalPageScroll="10" verticalLineScroll="168" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="10">
|
||||||
|
<rect key="frame" x="20" y="75" width="440" height="285"/>
|
||||||
|
<clipView key="contentView" copiesOnScroll="NO" id="fMP-TL-qIZ">
|
||||||
|
<rect key="frame" x="1" y="1" width="438" height="283"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<ikImageBrowserView autoresizesSubviews="NO" zoomValue="0.76223719120025635" translatesAutoresizingMaskIntoConstraints="NO" id="11">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="438" height="283"/>
|
||||||
|
<ikCellsStyle key="cellsStyleMask" shadowed="YES" titled="YES" subtitled="YES"/>
|
||||||
|
<autoresizingMask key="contentResizingMask" heightSizable="YES"/>
|
||||||
|
<size key="cellSize" width="148" height="148"/>
|
||||||
|
<connections>
|
||||||
|
<outlet property="_dataSource" destination="-2" id="39"/>
|
||||||
|
<outlet property="_delegate" destination="-2" id="40"/>
|
||||||
|
<outlet property="dataSource" destination="-2" id="41"/>
|
||||||
|
<outlet property="delegate" destination="-2" id="42"/>
|
||||||
|
</connections>
|
||||||
|
</ikImageBrowserView>
|
||||||
|
</subviews>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="11" secondAttribute="trailing" id="GpQ-w0-pL3"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="11" secondAttribute="bottom" id="Wx5-oU-I0v"/>
|
||||||
|
<constraint firstItem="11" firstAttribute="top" secondItem="fMP-TL-qIZ" secondAttribute="top" id="te2-aY-Xqb"/>
|
||||||
|
<constraint firstItem="11" firstAttribute="leading" secondItem="fMP-TL-qIZ" secondAttribute="leading" id="wbB-Cq-7RD"/>
|
||||||
|
</constraints>
|
||||||
|
</clipView>
|
||||||
|
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="12">
|
||||||
|
<rect key="frame" x="-100" y="-100" width="438" height="15"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
</scroller>
|
||||||
|
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="13">
|
||||||
|
<rect key="frame" x="424" y="1" width="15" height="250"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
</scroller>
|
||||||
|
</scrollView>
|
||||||
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="9">
|
||||||
|
<rect key="frame" x="338" y="12" width="128" height="32"/>
|
||||||
|
<buttonCell key="cell" type="push" title="Set as artwork" bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="14">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<string key="keyEquivalent" base64-UTF8="YES">
|
||||||
|
DQ
|
||||||
|
</string>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<action selector="addArtwork:" target="-2" id="38"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
<slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="8">
|
||||||
|
<rect key="frame" x="364" y="49" width="96" height="18"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" constant="96" id="0Mf-Un-HXH"/>
|
||||||
|
</constraints>
|
||||||
|
<sliderCell key="cell" controlSize="small" continuous="YES" state="on" alignment="left" minValue="0.20000000000000001" maxValue="1" doubleValue="0.60000000000000009" tickMarkPosition="above" numberOfTickMarks="5" sliderType="linear" id="15"/>
|
||||||
|
<accessibility description="Zoom"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="zoomSliderDidChange:" target="-2" id="44"/>
|
||||||
|
</connections>
|
||||||
|
</slider>
|
||||||
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="7">
|
||||||
|
<rect key="frame" x="14" y="12" width="166" height="32"/>
|
||||||
|
<buttonCell key="cell" type="push" title="Load more artwork..." bezelStyle="rounded" alignment="center" enabled="NO" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="16">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<string key="keyEquivalent">l</string>
|
||||||
|
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<action selector="loadMoreArtwork:" target="-2" id="47"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
<button horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="49">
|
||||||
|
<rect key="frame" x="265" y="12" width="73" height="32"/>
|
||||||
|
<buttonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="50">
|
||||||
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
|
<font key="font" metaFont="system"/>
|
||||||
|
<string key="keyEquivalent" base64-UTF8="YES">
|
||||||
|
Gw
|
||||||
|
</string>
|
||||||
|
</buttonCell>
|
||||||
|
<connections>
|
||||||
|
<action selector="addNoArtwork:" target="-2" id="51"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
|
</subviews>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="10" secondAttribute="trailing" constant="20" symbolic="YES" id="2dF-3S-sSa"/>
|
||||||
|
<constraint firstItem="9" firstAttribute="top" secondItem="8" secondAttribute="bottom" constant="10" id="42t-0L-Sim"/>
|
||||||
|
<constraint firstItem="9" firstAttribute="leading" secondItem="49" secondAttribute="trailing" constant="12" symbolic="YES" id="9KU-rV-HX6"/>
|
||||||
|
<constraint firstAttribute="bottom" secondItem="7" secondAttribute="bottom" constant="19" id="Ef2-6N-v4D"/>
|
||||||
|
<constraint firstItem="8" firstAttribute="top" secondItem="10" secondAttribute="bottom" constant="8" id="KQW-kp-ljW"/>
|
||||||
|
<constraint firstItem="49" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="7" secondAttribute="trailing" constant="66" id="KZN-qg-yUG"/>
|
||||||
|
<constraint firstItem="7" firstAttribute="baseline" secondItem="49" secondAttribute="baseline" id="X0P-3j-fGS"/>
|
||||||
|
<constraint firstItem="8" firstAttribute="trailing" secondItem="9" secondAttribute="trailing" id="fJ9-o3-pFG"/>
|
||||||
|
<constraint firstItem="10" firstAttribute="top" secondItem="4" secondAttribute="top" constant="20" symbolic="YES" id="kpP-bZ-e5s"/>
|
||||||
|
<constraint firstItem="10" firstAttribute="leading" secondItem="4" secondAttribute="leading" constant="20" symbolic="YES" id="qpm-9U-Mxg"/>
|
||||||
|
<constraint firstItem="49" firstAttribute="baseline" secondItem="9" secondAttribute="baseline" id="s1P-63-ywo"/>
|
||||||
|
<constraint firstItem="10" firstAttribute="trailing" secondItem="8" secondAttribute="trailing" id="tg4-M3-k3B"/>
|
||||||
|
<constraint firstItem="10" firstAttribute="leading" secondItem="7" secondAttribute="leading" id="vgS-hd-TsB"/>
|
||||||
|
</constraints>
|
||||||
|
</view>
|
||||||
|
<connections>
|
||||||
|
<outlet property="delegate" destination="-2" id="35"/>
|
||||||
|
</connections>
|
||||||
|
</window>
|
||||||
|
</objects>
|
||||||
|
</document>
|
||||||
@@ -9,7 +9,7 @@ import Cocoa
|
|||||||
import Quartz
|
import Quartz
|
||||||
|
|
||||||
private protocol ArtworkImageObjectDelegate: AnyObject {
|
private protocol ArtworkImageObjectDelegate: AnyObject {
|
||||||
func reloadData()
|
func reloadItem(_ item: ArtworkImageObject)
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ArtworkImageObject : NSObject {
|
private class ArtworkImageObject : NSObject {
|
||||||
@@ -36,6 +36,14 @@ private class ArtworkImageObject : NSObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func image() -> NSImage? {
|
||||||
|
if let data = imageRepresentation() as? Data {
|
||||||
|
return NSImage(data: data)
|
||||||
|
} else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override func imageRepresentation() -> Any! {
|
override func imageRepresentation() -> Any! {
|
||||||
// Get the data outside the main thread
|
// Get the data outside the main thread
|
||||||
var startDownload: Bool = false
|
var startDownload: Bool = false
|
||||||
@@ -60,7 +68,7 @@ private class ArtworkImageObject : NSObject {
|
|||||||
// We got the data, tell the controller to update the view
|
// We got the data, tell the controller to update the view
|
||||||
if localCancelled == false {
|
if localCancelled == false {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.delegate?.reloadData()
|
self.delegate?.reloadItem(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -106,7 +114,7 @@ protocol ArtworkSelectorControllerDelegate: AnyObject {
|
|||||||
func didSelect(artworks: [Artwork])
|
func didSelect(artworks: [Artwork])
|
||||||
}
|
}
|
||||||
|
|
||||||
class ArtworkSelectorController: NSWindowController, ArtworkImageObjectDelegate {
|
class ArtworkSelectorControllerOldStyle: NSWindowController, ArtworkImageObjectDelegate {
|
||||||
|
|
||||||
@IBOutlet var imageBrowser: IKImageBrowserView!
|
@IBOutlet var imageBrowser: IKImageBrowserView!
|
||||||
@IBOutlet var slider: NSSlider!
|
@IBOutlet var slider: NSSlider!
|
||||||
@@ -144,7 +152,7 @@ class ArtworkSelectorController: NSWindowController, ArtworkImageObjectDelegate
|
|||||||
}
|
}
|
||||||
|
|
||||||
override public var windowNibName: NSNib.Name? {
|
override public var windowNibName: NSNib.Name? {
|
||||||
return "ArtworkSelector"
|
return "ArtworkSelectorOld"
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Load images
|
// MARK: - Load images
|
||||||
@@ -175,7 +183,7 @@ class ArtworkSelectorController: NSWindowController, ArtworkImageObjectDelegate
|
|||||||
imageBrowser.needsDisplay = true
|
imageBrowser.needsDisplay = true
|
||||||
}
|
}
|
||||||
|
|
||||||
fileprivate func reloadData() {
|
fileprivate func reloadItem(_ item: ArtworkImageObject) {
|
||||||
imageBrowser.reloadData()
|
imageBrowser.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,3 +257,213 @@ class ArtworkSelectorController: NSWindowController, ArtworkImageObjectDelegate
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@available(OSX 10.11, *)
|
||||||
|
class CollectionView : NSCollectionView {
|
||||||
|
override func keyDown(with event: NSEvent) {
|
||||||
|
guard let key = event.charactersIgnoringModifiers?.utf16.first else { super.keyDown(with: event); return }
|
||||||
|
|
||||||
|
if key == NSEnterCharacter || key == NSCarriageReturnCharacter {
|
||||||
|
nextResponder?.keyDown(with: event)
|
||||||
|
} else if selectionIndexPaths.isEmpty {
|
||||||
|
if key == NSRightArrowFunctionKey || key == NSDownArrowFunctionKey {
|
||||||
|
animator().selectItems(at: Set([IndexPath(item: 0, section: 0)]), scrollPosition: .bottom)
|
||||||
|
} else if key == NSLeftArrowFunctionKey || key == NSUpArrowFunctionKey {
|
||||||
|
let numberOfItems = dataSource?.collectionView(self, numberOfItemsInSection: 0) ?? 1
|
||||||
|
animator().selectItems(at: Set([IndexPath(item: numberOfItems - 1, section: 0)]), scrollPosition: .bottom)
|
||||||
|
} else {
|
||||||
|
super.keyDown(with: event)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
super.keyDown(with: event)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@available(OSX 10.11, *)
|
||||||
|
class ArtworkSelectorController: NSWindowController, NSCollectionViewDataSource, NSCollectionViewDelegate, ArtworkImageObjectDelegate {
|
||||||
|
|
||||||
|
@IBOutlet var imageBrowser: NSCollectionView!
|
||||||
|
@IBOutlet var slider: NSSlider!
|
||||||
|
@IBOutlet var addArtworkButton: NSButton!
|
||||||
|
@IBOutlet var loadMoreArtworkButton: NSButton!
|
||||||
|
|
||||||
|
private var artworksUnloaded: [Artwork]
|
||||||
|
private var artworks: [ArtworkImageObject]
|
||||||
|
private let initialSize: CGSize?
|
||||||
|
private let type: MetadataType
|
||||||
|
|
||||||
|
private weak var delegate: ArtworkSelectorControllerDelegate?
|
||||||
|
|
||||||
|
// MARK: - Init
|
||||||
|
init(artworks: [Artwork], size: CGSize? = nil, type: MetadataType, delegate: ArtworkSelectorControllerDelegate) {
|
||||||
|
self.delegate = delegate
|
||||||
|
self.initialSize = size
|
||||||
|
self.artworksUnloaded = artworks
|
||||||
|
self.artworks = Array()
|
||||||
|
self.type = type
|
||||||
|
super.init(window: nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
required public init?(coder: NSCoder) {
|
||||||
|
fatalError("init(coder:) has not been implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
imageBrowser.delegate = nil
|
||||||
|
imageBrowser.dataSource = nil
|
||||||
|
|
||||||
|
for artwork in artworks {
|
||||||
|
artwork.cancel()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override public var windowNibName: NSNib.Name? {
|
||||||
|
return "ArtworkSelector"
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Load images
|
||||||
|
override public func windowDidLoad() {
|
||||||
|
super.windowDidLoad()
|
||||||
|
|
||||||
|
window?.contentView?.wantsLayer = true
|
||||||
|
|
||||||
|
if let size = initialSize { window?.setContentSize(size) }
|
||||||
|
|
||||||
|
imageBrowser.register(ArtworkSelectorViewItem.self, forItemWithIdentifier: ArtworkSelectorController.itemView)
|
||||||
|
loadMoreArtworks(count: 8)
|
||||||
|
|
||||||
|
if let defaultService = UserDefaults.standard.string(forKey: "SBArtworkSelectorDefaultService|\(type.description)"),
|
||||||
|
let defaultType = ArtworkType(rawValue: UserDefaults.standard.integer(forKey: "SBArtworkSelectorDefaultType|\(type.description)")) {
|
||||||
|
selectArtwork(type: defaultType, service: defaultService)
|
||||||
|
}
|
||||||
|
|
||||||
|
if imageBrowser.selectionIndexPaths.count == 0 {
|
||||||
|
let indexPath = IndexPath(item: 0, section: 0)
|
||||||
|
imageBrowser.selectItems(at: [indexPath], scrollPosition: .top)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func loadMoreArtwork(_ sender: Any) {
|
||||||
|
loadMoreArtworks(count: 8)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - User Interface
|
||||||
|
|
||||||
|
@IBAction func zoomSliderDidChange(_ sender: Any) {
|
||||||
|
if let layout = imageBrowser.collectionViewLayout as? NSCollectionViewFlowLayout {
|
||||||
|
layout.itemSize = NSSize(width: Int(slider.floatValue), height: Int(slider.floatValue * 1.25))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fileprivate func reloadItem(_ item: ArtworkImageObject) {
|
||||||
|
let selectionIndexPaths = imageBrowser.selectionIndexPaths
|
||||||
|
|
||||||
|
if let index = artworks.firstIndex(of: item) {
|
||||||
|
let indexPath = IndexPath(item: index, section: 0)
|
||||||
|
imageBrowser.reloadItems(at: [indexPath])
|
||||||
|
}
|
||||||
|
|
||||||
|
if imageBrowser.selectionIndexPaths.isEmpty {
|
||||||
|
imageBrowser.selectionIndexPaths = selectionIndexPaths
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private func selectArtwork(at index: Int) {
|
||||||
|
let indexPath = IndexPath(item: 0, section: 0)
|
||||||
|
imageBrowser.selectItems(at: [indexPath], scrollPosition: .top)
|
||||||
|
addArtworkButton.isEnabled = imageBrowser.selectionIndexPaths.isEmpty == false
|
||||||
|
}
|
||||||
|
|
||||||
|
private func loadMoreArtworks(count: Int) {
|
||||||
|
let endIndex = artworksUnloaded.count < count ? artworksUnloaded.count : count
|
||||||
|
let newArtworks = artworksUnloaded[0 ..< endIndex]
|
||||||
|
|
||||||
|
artworks.append(contentsOf: newArtworks.map { ArtworkImageObject(artwork: $0, delegate: self) })
|
||||||
|
artworksUnloaded.removeFirst(endIndex)
|
||||||
|
loadMoreArtworkButton.isEnabled = artworksUnloaded.isEmpty == false
|
||||||
|
|
||||||
|
let range = (artworks.count - endIndex ..< artworks.count)
|
||||||
|
let indexes = range.map { IndexPath(item: $0, section: 0)}
|
||||||
|
|
||||||
|
imageBrowser.insertItems(at: Set(indexes))
|
||||||
|
}
|
||||||
|
|
||||||
|
private func selectArtwork(type: ArtworkType, service: String) {
|
||||||
|
if let artwork = (artworks.filter { $0.source.type == type && $0.source.service == service } as [ArtworkImageObject]).first,
|
||||||
|
let index = artworks.index(of: artwork) {
|
||||||
|
selectArtwork(at: index)
|
||||||
|
}
|
||||||
|
else if let artwork = (artworks.filter { $0.source.type == type } as [ArtworkImageObject]).first,
|
||||||
|
let index = artworks.index(of: artwork) {
|
||||||
|
selectArtwork(at: index)
|
||||||
|
}
|
||||||
|
else if artworksUnloaded.isEmpty == false {
|
||||||
|
for (index, artwork) in artworksUnloaded.enumerated() {
|
||||||
|
if artwork.type == type {
|
||||||
|
let offset = artworks.count
|
||||||
|
loadMoreArtworks(count: index + 1)
|
||||||
|
selectArtwork(at: index + offset)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private func selectedArtworks() -> [ArtworkImageObject] {
|
||||||
|
return imageBrowser.selectionIndexes.map { artworks[$0] }
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Finishing Up
|
||||||
|
@IBAction func addArtwork(_ sender: Any) {
|
||||||
|
delegate?.didSelect(artworks:selectedArtworks().map { $0.source })
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func addNoArtwork(_ sender: Any) {
|
||||||
|
delegate?.didSelect(artworks: [])
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Data source
|
||||||
|
|
||||||
|
func collectionView(_ collectionView: NSCollectionView, numberOfItemsInSection section: Int) -> Int {
|
||||||
|
return artworks.count
|
||||||
|
}
|
||||||
|
|
||||||
|
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.title = artwork.imageTitle()
|
||||||
|
collectionViewItem.subtitle = artwork.imageSubtitle()
|
||||||
|
collectionViewItem.image = artwork.image()
|
||||||
|
|
||||||
|
collectionViewItem.doubleAction = #selector(addArtwork)
|
||||||
|
collectionViewItem.target = self
|
||||||
|
|
||||||
|
return collectionViewItem
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Delegate
|
||||||
|
|
||||||
|
private func updateSelection() {
|
||||||
|
addArtworkButton.isEnabled = imageBrowser.selectionIndexes.isEmpty == false
|
||||||
|
if let artwork = selectedArtworks().first {
|
||||||
|
UserDefaults.standard.set(artwork.source.type.rawValue, forKey: "SBArtworkSelectorDefaultType|\(type.description)")
|
||||||
|
UserDefaults.standard.set(artwork.source.service, forKey: "SBArtworkSelectorDefaultService|\(type.description)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func collectionView(_ collectionView: NSCollectionView, didSelectItemsAt indexPaths: Set<IndexPath>) {
|
||||||
|
updateSelection()
|
||||||
|
}
|
||||||
|
|
||||||
|
func collectionView(_ collectionView: NSCollectionView, didDeselectItemsAt indexPaths: Set<IndexPath>) {
|
||||||
|
updateSelection()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,237 @@
|
|||||||
|
//
|
||||||
|
// ArtworkSelectorViewItem.swift
|
||||||
|
// Subler
|
||||||
|
//
|
||||||
|
// Created by Damiano Galassi on 13/06/2018.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Cocoa
|
||||||
|
|
||||||
|
class ArtworkSelectorViewItemLabel : NSTextField {
|
||||||
|
|
||||||
|
@IBInspectable var highlightColor: NSColor = .alternateSelectedControlColor
|
||||||
|
@IBInspectable var highlightTextColor: NSColor = .alternateSelectedControlTextColor
|
||||||
|
@IBInspectable var cornerRadius: CGFloat = 3
|
||||||
|
|
||||||
|
override func draw(_ dirtyRect: NSRect) {
|
||||||
|
var attributedString = attributedStringValue
|
||||||
|
if isHighlighted {
|
||||||
|
let mutableAttributedString = attributedString.mutableCopy() as! NSMutableAttributedString
|
||||||
|
let range = NSRange(location: 0, length: mutableAttributedString.length)
|
||||||
|
mutableAttributedString.removeAttribute(NSAttributedString.Key.foregroundColor, range: range)
|
||||||
|
mutableAttributedString.addAttributes([NSAttributedString.Key.foregroundColor : highlightTextColor], range: range)
|
||||||
|
attributedString = mutableAttributedString
|
||||||
|
}
|
||||||
|
let framesetter = CTFramesetterCreateWithAttributedString(attributedString)
|
||||||
|
|
||||||
|
let path = CGMutablePath()
|
||||||
|
path.addRect(CGRect(x: 0, y: 0, width: bounds.size.width, height: bounds.size.height))
|
||||||
|
|
||||||
|
let totalFrame = CTFramesetterCreateFrame(framesetter, CFRange(), path, nil)
|
||||||
|
|
||||||
|
guard let context = NSGraphicsContext.current?.cgContext else { return }
|
||||||
|
context.saveGState()
|
||||||
|
context.textMatrix = .identity
|
||||||
|
context.translateBy(x: 0, y: bounds.size.height)
|
||||||
|
context.scaleBy(x: 1, y: -1)
|
||||||
|
|
||||||
|
// Highlight the text specified
|
||||||
|
let lines = CTFrameGetLines(totalFrame) as! [CTLine]
|
||||||
|
let lineCount = lines.count
|
||||||
|
|
||||||
|
var origins = [CGPoint](repeating: CGPoint.zero, count: lineCount)
|
||||||
|
CTFrameGetLineOrigins(totalFrame, CFRange(), &origins)
|
||||||
|
|
||||||
|
if isHighlighted {
|
||||||
|
for index in 0 ..< lineCount {
|
||||||
|
let line = lines[index]
|
||||||
|
let glyphRuns = CTLineGetGlyphRuns(line) as! [CTRun]
|
||||||
|
let glyphCount = glyphRuns.count
|
||||||
|
|
||||||
|
let origin = origins[index]
|
||||||
|
// context.textPosition = pos
|
||||||
|
|
||||||
|
for i in 0 ..< glyphCount {
|
||||||
|
let run = glyphRuns[i]
|
||||||
|
// let attributes = CTRunGetAttributes(run)
|
||||||
|
|
||||||
|
// if CFDictionaryGetValue(attributes, "HighlightText") {
|
||||||
|
var runBounds = CGRect.zero
|
||||||
|
var ascent: CGFloat = 0, descent: CGFloat = 0, leading: CGFloat = 0
|
||||||
|
|
||||||
|
runBounds.size.width = CGFloat(CTRunGetTypographicBounds(run, CFRange(), &ascent, &descent, &leading))
|
||||||
|
runBounds.size.height = ascent + descent
|
||||||
|
|
||||||
|
runBounds.origin.x = CTLineGetOffsetForStringIndex(line, CTRunGetStringRange(run).location, nil) + origin.x
|
||||||
|
runBounds.origin.y = origin.y - descent
|
||||||
|
|
||||||
|
let highlightCGColor = highlightColor.cgColor
|
||||||
|
let roundeRect = runBounds.insetBy(dx: -4, dy: 0)
|
||||||
|
let roundedPath = NSBezierPath(roundedRect: roundeRect.integral, xRadius: cornerRadius, yRadius: cornerRadius)
|
||||||
|
context.setFillColor(highlightCGColor)
|
||||||
|
roundedPath.fill()
|
||||||
|
|
||||||
|
// CTRunDraw(run, context, CFRange())
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CTFrameDraw(totalFrame, context)
|
||||||
|
context.restoreGState()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class ArtworkSelectorViewItemView: NSView {
|
||||||
|
override func hitTest(_ point: NSPoint) -> NSView? {
|
||||||
|
guard let superview = superview else { return nil }
|
||||||
|
|
||||||
|
if super.hitTest(point) != nil {
|
||||||
|
let convertedPoint = superview.convert(point, to: self)
|
||||||
|
if let layer = layer?.sublayers?.last {
|
||||||
|
if layer.hitTest(convertedPoint) != nil {
|
||||||
|
return self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return superview
|
||||||
|
} else {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@available(OSX 10.11, *)
|
||||||
|
class ArtworkSelectorViewItem: NSCollectionViewItem {
|
||||||
|
|
||||||
|
@IBOutlet var subTextField: NSTextField!
|
||||||
|
|
||||||
|
private let imageLayer: CALayer = CALayer()
|
||||||
|
private let backgroundLayer: CALayer = CALayer()
|
||||||
|
|
||||||
|
// MARK: Properties
|
||||||
|
|
||||||
|
var doubleAction: Selector?
|
||||||
|
weak var target: AnyObject?
|
||||||
|
|
||||||
|
override var title: String? {
|
||||||
|
set (title) {
|
||||||
|
textField?.stringValue = title ?? ""
|
||||||
|
super.title = title
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
return super.title
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var subtitle: String? {
|
||||||
|
didSet {
|
||||||
|
subTextField?.stringValue = subtitle ?? ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var image: NSImage? {
|
||||||
|
didSet {
|
||||||
|
if image != nil {
|
||||||
|
imageLayer.contents = image
|
||||||
|
imageLayer.shadowOpacity = 0.8
|
||||||
|
} else {
|
||||||
|
imageLayer.contents = NSImage(imageLiteralResourceName: "Placeholder")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override var highlightState: NSCollectionViewItem.HighlightState {
|
||||||
|
set (value) {
|
||||||
|
super.highlightState = value
|
||||||
|
updateSelectionHighlight()
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
return super.highlightState
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override var isSelected: Bool {
|
||||||
|
set (value) {
|
||||||
|
super.isSelected = value
|
||||||
|
updateSelectionHighlight()
|
||||||
|
}
|
||||||
|
get {
|
||||||
|
return super.isSelected
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: View Controller life cycle
|
||||||
|
|
||||||
|
override func viewDidLoad() {
|
||||||
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
// self.view.layer?.shouldRasterize = true
|
||||||
|
self.view.canDrawSubviewsIntoLayer = true
|
||||||
|
|
||||||
|
imageLayer.anchorPoint = CGPoint.zero
|
||||||
|
imageLayer.position = CGPoint(x: 4, y: 40)
|
||||||
|
imageLayer.contentsGravity = .resizeAspect
|
||||||
|
imageLayer.shadowRadius = 1
|
||||||
|
imageLayer.shadowColor = NSColor.labelColor.cgColor
|
||||||
|
imageLayer.shadowOffset = CGSize.zero
|
||||||
|
imageLayer.isOpaque = true
|
||||||
|
backgroundLayer.anchorPoint = CGPoint.zero
|
||||||
|
backgroundLayer.position = CGPoint(x: 0, y: 36)
|
||||||
|
backgroundLayer.backgroundColor = NSColor.controlHighlightColor.cgColor
|
||||||
|
backgroundLayer.cornerRadius = 8
|
||||||
|
backgroundLayer.isHidden = true
|
||||||
|
backgroundLayer.isOpaque = true
|
||||||
|
|
||||||
|
let actions: [String : CAAction] = ["contents": NSNull(),
|
||||||
|
"hidden": NSNull(),
|
||||||
|
"bounds": NSNull()]
|
||||||
|
imageLayer.actions = actions
|
||||||
|
backgroundLayer.actions = actions
|
||||||
|
|
||||||
|
view.layer?.addSublayer(backgroundLayer)
|
||||||
|
view.layer?.addSublayer(imageLayer)
|
||||||
|
}
|
||||||
|
|
||||||
|
override func viewDidLayout() {
|
||||||
|
let bounds = self.view.bounds
|
||||||
|
|
||||||
|
imageLayer.bounds = CGRect(x: 0, y: 0, width: bounds.width - 8, height: bounds.height - 44)
|
||||||
|
backgroundLayer.bounds = CGRect(x: 0, y: 0, width: bounds.width, height: bounds.height - 36)
|
||||||
|
|
||||||
|
super.viewDidLayout()
|
||||||
|
}
|
||||||
|
|
||||||
|
static private let paragraph: NSParagraphStyle = {
|
||||||
|
let paragraph = NSMutableParagraphStyle()
|
||||||
|
paragraph.alignment = .center
|
||||||
|
return paragraph
|
||||||
|
}()
|
||||||
|
|
||||||
|
private func updateSelectionHighlight() {
|
||||||
|
if highlightState == .forSelection || (isSelected && highlightState != .forDeselection) {
|
||||||
|
backgroundLayer.isHidden = false
|
||||||
|
textField?.isHighlighted = true
|
||||||
|
} else {
|
||||||
|
backgroundLayer.isHidden = true
|
||||||
|
textField?.isHighlighted = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: Actions
|
||||||
|
|
||||||
|
override func mouseUp(with event: NSEvent) {
|
||||||
|
if event.clickCount > 1, let action = doubleAction {
|
||||||
|
target?.performSelector(onMainThread: action, with: nil, waitUntilDone: true)
|
||||||
|
} else {
|
||||||
|
super.mouseUp(with: event)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override func keyDown(with event: NSEvent) {
|
||||||
|
if event.keyCode == NSEnterCharacter, let action = doubleAction {
|
||||||
|
target?.performSelector(onMainThread: action, with: nil, waitUntilDone: true)
|
||||||
|
} else {
|
||||||
|
super.keyDown(with: event)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14269.14" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" customObjectInstantitationMethod="direct">
|
||||||
|
<dependencies>
|
||||||
|
<deployment version="101100" identifier="macosx"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14269.14"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<objects>
|
||||||
|
<customObject id="-2" userLabel="File's Owner" customClass="ArtworkSelectorViewItem" customModule="Subler" customModuleProvider="target">
|
||||||
|
<connections>
|
||||||
|
<outlet property="subTextField" destination="fGU-Kh-WjD" id="NYJ-6o-hWO"/>
|
||||||
|
<outlet property="textField" destination="Wkh-6c-0tU" id="Wbm-4M-W1L"/>
|
||||||
|
<outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
|
||||||
|
</connections>
|
||||||
|
</customObject>
|
||||||
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||||
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||||
|
<customView wantsLayer="YES" misplaced="YES" id="Hz6-mo-xeY" customClass="ArtworkSelectorViewItemView" customModule="Subler" customModuleProvider="target">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="128" height="171"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" id="Wkh-6c-0tU" customClass="ArtworkSelectorViewItemLabel" customModule="Subler" customModuleProvider="target">
|
||||||
|
<rect key="frame" x="0.0" y="17" width="128" height="17"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||||
|
<textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="Label" id="TsL-Ak-xnf">
|
||||||
|
<font key="font" metaFont="cellTitle"/>
|
||||||
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" id="fGU-Kh-WjD">
|
||||||
|
<rect key="frame" x="2" y="4" width="124" height="14"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||||
|
<textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="Label" id="ggX-Q2-CZ0">
|
||||||
|
<font key="font" metaFont="system" size="10"/>
|
||||||
|
<color key="textColor" name="disabledControlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
|
</textFieldCell>
|
||||||
|
</textField>
|
||||||
|
</subviews>
|
||||||
|
<point key="canvasLocation" x="-39" y="112.5"/>
|
||||||
|
</customView>
|
||||||
|
</objects>
|
||||||
|
</document>
|
||||||
@@ -191,7 +191,7 @@ class DocumentWindowController: NSWindowController, TracksViewControllerDelegate
|
|||||||
@IBOutlet var searchChapters: NSToolbarItem!
|
@IBOutlet var searchChapters: NSToolbarItem!
|
||||||
@IBOutlet var sendToQueue: NSToolbarItem!
|
@IBOutlet var sendToQueue: NSToolbarItem!
|
||||||
|
|
||||||
override func validateToolbarItem(_ item: NSToolbarItem) -> Bool {
|
override func validate(_ item: NSToolbarItem) -> Bool {
|
||||||
if item == addTracks ||
|
if item == addTracks ||
|
||||||
item == searchMetadata ||
|
item == searchMetadata ||
|
||||||
item == searchChapters ||
|
item == searchChapters ||
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class MetadataSearchController: NSWindowController, NSTableViewDataSource, NSTab
|
|||||||
private var tvShowService: MetadataService = MetadataSearch.defaultTVService
|
private var tvShowService: MetadataService = MetadataSearch.defaultTVService
|
||||||
|
|
||||||
// MARK: Other
|
// MARK: Other
|
||||||
private var artworkSelector: ArtworkSelectorController?
|
private var artworkSelector: NSWindowController?
|
||||||
private weak var delegate: MetadataSearchControllerDelegate?
|
private weak var delegate: MetadataSearchControllerDelegate?
|
||||||
|
|
||||||
private let terms: MetadataSearchTerms
|
private let terms: MetadataSearchTerms
|
||||||
@@ -298,10 +298,17 @@ class MetadataSearchController: NSWindowController, NSTableViewDataSource, NSTab
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func selectArtwork(artworks: [Artwork], type: MetadataType) {
|
private func selectArtwork(artworks: [Artwork], type: MetadataType) {
|
||||||
let artworkSelectorController = ArtworkSelectorController(artworks: artworks, size: window?.frame.size,
|
if #available(OSX 10.11, *) {
|
||||||
type: type, delegate: self)
|
let artworkSelectorController = ArtworkSelectorController(artworks: artworks, size: window?.frame.size,
|
||||||
window?.beginSheet(artworkSelectorController.window!, completionHandler: nil)
|
type: type, delegate: self)
|
||||||
artworkSelector = artworkSelectorController
|
window?.beginSheet(artworkSelectorController.window!, completionHandler: nil)
|
||||||
|
artworkSelector = artworkSelectorController
|
||||||
|
} else {
|
||||||
|
let artworkSelectorController = ArtworkSelectorControllerOldStyle(artworks: artworks, size: window?.frame.size,
|
||||||
|
type: type, delegate: self)
|
||||||
|
window?.beginSheet(artworkSelectorController.window!, completionHandler: nil)
|
||||||
|
artworkSelector = artworkSelectorController
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func didSelect(artworks: [Artwork]) {
|
func didSelect(artworks: [Artwork]) {
|
||||||
|
|||||||
@@ -61,6 +61,10 @@
|
|||||||
A984DB4B0F52D644001A20B2 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; };
|
A984DB4B0F52D644001A20B2 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; };
|
||||||
A984DB530F52D679001A20B2 /* Sparkle.framework in Copy Files */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
|
A984DB530F52D679001A20B2 /* Sparkle.framework in Copy Files */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
|
||||||
A984DB740F52DD4B001A20B2 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = A984DB730F52DD4B001A20B2 /* dsa_pub.pem */; };
|
A984DB740F52DD4B001A20B2 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = A984DB730F52DD4B001A20B2 /* dsa_pub.pem */; };
|
||||||
|
A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */ = {isa = PBXBuildFile; fileRef = A98542D520D197D300EB9803 /* ArtworkSelector.xib */; };
|
||||||
|
A98542D920D197DF00EB9803 /* ArtworkSelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98542D820D197DF00EB9803 /* ArtworkSelector.swift */; };
|
||||||
|
A98542DC20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98542DA20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift */; };
|
||||||
|
A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = A98542DB20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib */; };
|
||||||
A9859ACE1F4B43CC00022828 /* QueuePreset.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9859ACD1F4B43CC00022828 /* QueuePreset.swift */; };
|
A9859ACE1F4B43CC00022828 /* QueuePreset.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9859ACD1F4B43CC00022828 /* QueuePreset.swift */; };
|
||||||
A98D44102036F661005CB092 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D440F2036F661005CB092 /* AppDelegate.swift */; };
|
A98D44102036F661005CB092 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D440F2036F661005CB092 /* AppDelegate.swift */; };
|
||||||
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D98451F0280CB00A77ABC /* TheMovieDB.swift */; };
|
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D98451F0280CB00A77ABC /* TheMovieDB.swift */; };
|
||||||
@@ -111,7 +115,6 @@
|
|||||||
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */; };
|
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */; };
|
||||||
A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B991B918D5C00F1E40C /* SBApplication.m */; };
|
A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B991B918D5C00F1E40C /* SBApplication.m */; };
|
||||||
A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */; };
|
A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */; };
|
||||||
A9E932A71F34D31D00B1790B /* ArtworkSelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */; };
|
|
||||||
A9E97F141F274F1100DBA586 /* iTunesStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E97F131F274F1100DBA586 /* iTunesStore.swift */; };
|
A9E97F141F274F1100DBA586 /* iTunesStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E97F131F274F1100DBA586 /* iTunesStore.swift */; };
|
||||||
A9ECA0532029948900D5F30C /* OffsetViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9ECA0512029948900D5F30C /* OffsetViewController.swift */; };
|
A9ECA0532029948900D5F30C /* OffsetViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9ECA0512029948900D5F30C /* OffsetViewController.swift */; };
|
||||||
A9ECA0572029A10B00D5F30C /* DocumentWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9ECA0592029A10B00D5F30C /* DocumentWindowController.xib */; };
|
A9ECA0572029A10B00D5F30C /* DocumentWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9ECA0592029A10B00D5F30C /* DocumentWindowController.xib */; };
|
||||||
@@ -126,7 +129,7 @@
|
|||||||
A9F7F8E01837C44B0036AE7E /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9ED7B21180067A2008FD3A8 /* IOKit.framework */; };
|
A9F7F8E01837C44B0036AE7E /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9ED7B21180067A2008FD3A8 /* IOKit.framework */; };
|
||||||
A9F8045A1FB6F4FD0069FF43 /* ImageBrowserView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F804591FB6F4FD0069FF43 /* ImageBrowserView.swift */; };
|
A9F8045A1FB6F4FD0069FF43 /* ImageBrowserView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F804591FB6F4FD0069FF43 /* ImageBrowserView.swift */; };
|
||||||
A9FC6FF61EF2E3280034CCED /* TheTVDBService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FC6FF51EF2E3280034CCED /* TheTVDBService.swift */; };
|
A9FC6FF61EF2E3280034CCED /* TheTVDBService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FC6FF51EF2E3280034CCED /* TheTVDBService.swift */; };
|
||||||
CD4E6E5D12F744210095C84F /* ArtworkSelector.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */; };
|
CD4E6E5D12F744210095C84F /* ArtworkSelectorOld.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */; };
|
||||||
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */; };
|
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */; };
|
||||||
CDE8E452174CBBD4009410B5 /* iTunesStores.json in Resources */ = {isa = PBXBuildFile; fileRef = CDE8E451174CBBD4009410B5 /* iTunesStores.json */; };
|
CDE8E452174CBBD4009410B5 /* iTunesStores.json in Resources */ = {isa = PBXBuildFile; fileRef = CDE8E451174CBBD4009410B5 /* iTunesStores.json */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
@@ -218,7 +221,7 @@
|
|||||||
A924A5111D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/VideoView.xib; sourceTree = "<group>"; };
|
A924A5111D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/VideoView.xib; sourceTree = "<group>"; };
|
||||||
A924A5121D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
|
A924A5121D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
|
||||||
A924A5141D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MetadataSearch.xib; sourceTree = "<group>"; };
|
A924A5141D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MetadataSearch.xib; sourceTree = "<group>"; };
|
||||||
A924A5151D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ArtworkSelector.xib; sourceTree = "<group>"; };
|
A924A5151D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ArtworkSelectorOld.xib; sourceTree = "<group>"; };
|
||||||
A924A5161D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SBChapterSearch.xib; sourceTree = "<group>"; };
|
A924A5161D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SBChapterSearch.xib; sourceTree = "<group>"; };
|
||||||
A924A5171D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Queue.xib; sourceTree = "<group>"; };
|
A924A5171D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Queue.xib; sourceTree = "<group>"; };
|
||||||
A924A5181D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/QueueOptions.xib; sourceTree = "<group>"; };
|
A924A5181D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/QueueOptions.xib; sourceTree = "<group>"; };
|
||||||
@@ -267,6 +270,10 @@
|
|||||||
A982D0BF140AB66400B92357 /* SBQueueItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueItem.m; path = Classes/SBQueueItem.m; sourceTree = "<group>"; };
|
A982D0BF140AB66400B92357 /* SBQueueItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueItem.m; path = Classes/SBQueueItem.m; sourceTree = "<group>"; };
|
||||||
A984DB4A0F52D644001A20B2 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
|
A984DB4A0F52D644001A20B2 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
|
||||||
A984DB730F52DD4B001A20B2 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
|
A984DB730F52DD4B001A20B2 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
|
||||||
|
A98542D620D197D300EB9803 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ArtworkSelector.xib; sourceTree = "<group>"; };
|
||||||
|
A98542D820D197DF00EB9803 /* ArtworkSelector.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ArtworkSelector.swift; path = Classes/ArtworkSelector.swift; sourceTree = "<group>"; };
|
||||||
|
A98542DA20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ArtworkSelectorViewItem.swift; path = Classes/ArtworkSelectorViewItem.swift; sourceTree = "<group>"; };
|
||||||
|
A98542DB20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ArtworkSelectorViewItem.xib; path = Classes/ArtworkSelectorViewItem.xib; sourceTree = "<group>"; };
|
||||||
A9859ACD1F4B43CC00022828 /* QueuePreset.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueuePreset.swift; path = Classes/QueuePreset.swift; sourceTree = "<group>"; };
|
A9859ACD1F4B43CC00022828 /* QueuePreset.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueuePreset.swift; path = Classes/QueuePreset.swift; sourceTree = "<group>"; };
|
||||||
A98D440F2036F661005CB092 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Classes/AppDelegate.swift; sourceTree = "<group>"; };
|
A98D440F2036F661005CB092 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Classes/AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
A98D98451F0280CB00A77ABC /* TheMovieDB.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TheMovieDB.swift; path = Classes/MetadataImporters/TheMovieDB.swift; sourceTree = "<group>"; };
|
A98D98451F0280CB00A77ABC /* TheMovieDB.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TheMovieDB.swift; path = Classes/MetadataImporters/TheMovieDB.swift; sourceTree = "<group>"; };
|
||||||
@@ -302,7 +309,7 @@
|
|||||||
A9BA1AD61DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/VideoView.strings; sourceTree = "<group>"; };
|
A9BA1AD61DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/VideoView.strings; sourceTree = "<group>"; };
|
||||||
A9BA1AD71DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MainMenu.strings; sourceTree = "<group>"; };
|
A9BA1AD71DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MainMenu.strings; sourceTree = "<group>"; };
|
||||||
A9BA1AD91DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MetadataSearch.strings; sourceTree = "<group>"; };
|
A9BA1AD91DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MetadataSearch.strings; sourceTree = "<group>"; };
|
||||||
A9BA1ADA1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/ArtworkSelector.strings; sourceTree = "<group>"; };
|
A9BA1ADA1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/ArtworkSelectorOld.strings; sourceTree = "<group>"; };
|
||||||
A9BA1ADD1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBChapterSearch.strings; sourceTree = "<group>"; };
|
A9BA1ADD1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBChapterSearch.strings; sourceTree = "<group>"; };
|
||||||
A9BA1ADE1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Queue.strings; sourceTree = "<group>"; };
|
A9BA1ADE1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Queue.strings; sourceTree = "<group>"; };
|
||||||
A9BA1ADF1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/QueueOptions.strings; sourceTree = "<group>"; };
|
A9BA1ADF1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/QueueOptions.strings; sourceTree = "<group>"; };
|
||||||
@@ -330,7 +337,6 @@
|
|||||||
A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueue.m; path = Classes/SBQueue.m; sourceTree = "<group>"; };
|
A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueue.m; path = Classes/SBQueue.m; sourceTree = "<group>"; };
|
||||||
A9DA3B991B918D5C00F1E40C /* SBApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBApplication.m; path = Classes/SBApplication.m; sourceTree = "<group>"; };
|
A9DA3B991B918D5C00F1E40C /* SBApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBApplication.m; path = Classes/SBApplication.m; sourceTree = "<group>"; };
|
||||||
A9DA3BA01B918D6200F1E40C /* SBApplication.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SBApplication.h; path = Classes/SBApplication.h; sourceTree = "<group>"; };
|
A9DA3BA01B918D6200F1E40C /* SBApplication.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SBApplication.h; path = Classes/SBApplication.h; sourceTree = "<group>"; };
|
||||||
A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ArtworkSelector.swift; path = Classes/ArtworkSelector.swift; sourceTree = "<group>"; };
|
|
||||||
A9E97F131F274F1100DBA586 /* iTunesStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iTunesStore.swift; path = Classes/MetadataImporters/iTunesStore.swift; sourceTree = "<group>"; };
|
A9E97F131F274F1100DBA586 /* iTunesStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iTunesStore.swift; path = Classes/MetadataImporters/iTunesStore.swift; sourceTree = "<group>"; };
|
||||||
A9E9E5291FB21B4000BCC49D /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/FileImportController.strings; sourceTree = "<group>"; };
|
A9E9E5291FB21B4000BCC49D /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/FileImportController.strings; sourceTree = "<group>"; };
|
||||||
A9ECA0512029948900D5F30C /* OffsetViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OffsetViewController.swift; path = Classes/OffsetViewController.swift; sourceTree = "<group>"; };
|
A9ECA0512029948900D5F30C /* OffsetViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OffsetViewController.swift; path = Classes/OffsetViewController.swift; sourceTree = "<group>"; };
|
||||||
@@ -601,8 +607,11 @@
|
|||||||
A9A4A968202F51FA00482D12 /* SaveOptions.xib */,
|
A9A4A968202F51FA00482D12 /* SaveOptions.xib */,
|
||||||
A962D9ED1F8B7F9F00802EEF /* FileImportController.swift */,
|
A962D9ED1F8B7F9F00802EEF /* FileImportController.swift */,
|
||||||
A93105351F9758EC00605146 /* FileImportController.xib */,
|
A93105351F9758EC00605146 /* FileImportController.xib */,
|
||||||
A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */,
|
A98542D820D197DF00EB9803 /* ArtworkSelector.swift */,
|
||||||
CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */,
|
CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */,
|
||||||
|
A98542D520D197D300EB9803 /* ArtworkSelector.xib */,
|
||||||
|
A98542DA20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift */,
|
||||||
|
A98542DB20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib */,
|
||||||
A997B0A91F348AB000974C9C /* MetadataSearchController.swift */,
|
A997B0A91F348AB000974C9C /* MetadataSearchController.swift */,
|
||||||
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */,
|
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */,
|
||||||
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */,
|
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */,
|
||||||
@@ -708,6 +717,11 @@
|
|||||||
8D15AC270486D014006FF6A4 = {
|
8D15AC270486D014006FF6A4 = {
|
||||||
LastSwiftMigration = 1000;
|
LastSwiftMigration = 1000;
|
||||||
ProvisioningStyle = Automatic;
|
ProvisioningStyle = Automatic;
|
||||||
|
SystemCapabilities = {
|
||||||
|
com.apple.Sandbox = {
|
||||||
|
enabled = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
A95B8DA31B09F37700F2F152 = {
|
A95B8DA31B09F37700F2F152 = {
|
||||||
CreatedOnToolsVersion = 6.3.1;
|
CreatedOnToolsVersion = 6.3.1;
|
||||||
@@ -776,6 +790,7 @@
|
|||||||
A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */,
|
A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */,
|
||||||
A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */,
|
A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */,
|
||||||
A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */,
|
A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */,
|
||||||
|
A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */,
|
||||||
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */,
|
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */,
|
||||||
A9ECA05A2029A10F00D5F30C /* TracksViewController.xib in Resources */,
|
A9ECA05A2029A10F00D5F30C /* TracksViewController.xib in Resources */,
|
||||||
A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */,
|
A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */,
|
||||||
@@ -796,12 +811,13 @@
|
|||||||
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */,
|
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */,
|
||||||
A90CD5C01FD177230070A067 /* TokensViewController.xib in Resources */,
|
A90CD5C01FD177230070A067 /* TokensViewController.xib in Resources */,
|
||||||
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */,
|
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */,
|
||||||
CD4E6E5D12F744210095C84F /* ArtworkSelector.xib in Resources */,
|
CD4E6E5D12F744210095C84F /* ArtworkSelectorOld.xib in Resources */,
|
||||||
61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */,
|
61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */,
|
||||||
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */,
|
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */,
|
||||||
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */,
|
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */,
|
||||||
A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */,
|
A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */,
|
||||||
A998DABF1BA54CFF004D7969 /* MediaTagsController.xib in Resources */,
|
A998DABF1BA54CFF004D7969 /* MediaTagsController.xib in Resources */,
|
||||||
|
A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */,
|
||||||
A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */,
|
A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */,
|
||||||
A961476713F568210068F161 /* Queue.xib in Resources */,
|
A961476713F568210068F161 /* Queue.xib in Resources */,
|
||||||
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */,
|
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */,
|
||||||
@@ -834,6 +850,7 @@
|
|||||||
A959001A202AF21800FD8F23 /* ProgressViewController.swift in Sources */,
|
A959001A202AF21800FD8F23 /* ProgressViewController.swift in Sources */,
|
||||||
A91576EB204ECA6E00D93CE7 /* Token.swift in Sources */,
|
A91576EB204ECA6E00D93CE7 /* Token.swift in Sources */,
|
||||||
A9676A341FB6EAAD00C1E300 /* ItemViewController.swift in Sources */,
|
A9676A341FB6EAAD00C1E300 /* ItemViewController.swift in Sources */,
|
||||||
|
A98542DC20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift in Sources */,
|
||||||
A90C3E0C1FD16AF200F64532 /* TokensViewController.swift in Sources */,
|
A90C3E0C1FD16AF200F64532 /* TokensViewController.swift in Sources */,
|
||||||
A9AB485617F0AEAC000AA72E /* SBMovieViewController.m in Sources */,
|
A9AB485617F0AEAC000AA72E /* SBMovieViewController.m in Sources */,
|
||||||
A9C09C7C1F99F460007939EE /* ExceptionAlertController.swift in Sources */,
|
A9C09C7C1F99F460007939EE /* ExceptionAlertController.swift in Sources */,
|
||||||
@@ -841,6 +858,7 @@
|
|||||||
A9676A301FB6E85300C1E300 /* LanguageTransformer.swift in Sources */,
|
A9676A301FB6E85300C1E300 /* LanguageTransformer.swift in Sources */,
|
||||||
A9907E192063DAA000DB992E /* VideoViewController.swift in Sources */,
|
A9907E192063DAA000DB992E /* VideoViewController.swift in Sources */,
|
||||||
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */,
|
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */,
|
||||||
|
A98542D920D197DF00EB9803 /* ArtworkSelector.swift in Sources */,
|
||||||
A99B9A842063AD98000FAE20 /* MovieViewControllerAdditions.swift in Sources */,
|
A99B9A842063AD98000FAE20 /* MovieViewControllerAdditions.swift in Sources */,
|
||||||
A98D98481F02820F00A77ABC /* TheMovieDBService.swift in Sources */,
|
A98D98481F02820F00A77ABC /* TheMovieDBService.swift in Sources */,
|
||||||
A962D9EE1F8B7F9F00802EEF /* FileImportController.swift in Sources */,
|
A962D9EE1F8B7F9F00802EEF /* FileImportController.swift in Sources */,
|
||||||
@@ -870,7 +888,6 @@
|
|||||||
A9C09C981F99F971007939EE /* ExpandedTableView.swift in Sources */,
|
A9C09C981F99F971007939EE /* ExpandedTableView.swift in Sources */,
|
||||||
A90240DB2063BD3700E762FA /* MediaTagsController.swift in Sources */,
|
A90240DB2063BD3700E762FA /* MediaTagsController.swift in Sources */,
|
||||||
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */,
|
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */,
|
||||||
A9E932A71F34D31D00B1790B /* ArtworkSelector.swift in Sources */,
|
|
||||||
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */,
|
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */,
|
||||||
A956CE6B1F99EAAD00093992 /* Logger.swift in Sources */,
|
A956CE6B1F99EAAD00093992 /* Logger.swift in Sources */,
|
||||||
A956CE691F99E93D00093992 /* ButtonToolbarItem.swift in Sources */,
|
A956CE691F99E93D00093992 /* ButtonToolbarItem.swift in Sources */,
|
||||||
@@ -1042,6 +1059,14 @@
|
|||||||
name = Queue.xib;
|
name = Queue.xib;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
A98542D520D197D300EB9803 /* ArtworkSelector.xib */ = {
|
||||||
|
isa = PBXVariantGroup;
|
||||||
|
children = (
|
||||||
|
A98542D620D197D300EB9803 /* Base */,
|
||||||
|
);
|
||||||
|
name = ArtworkSelector.xib;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
A998DABD1BA54CFF004D7969 /* MediaTagsController.xib */ = {
|
A998DABD1BA54CFF004D7969 /* MediaTagsController.xib */ = {
|
||||||
isa = PBXVariantGroup;
|
isa = PBXVariantGroup;
|
||||||
children = (
|
children = (
|
||||||
@@ -1234,13 +1259,13 @@
|
|||||||
name = QueueOptions.xib;
|
name = QueueOptions.xib;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */ = {
|
CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */ = {
|
||||||
isa = PBXVariantGroup;
|
isa = PBXVariantGroup;
|
||||||
children = (
|
children = (
|
||||||
A924A5151D4B9E66008301A7 /* Base */,
|
A924A5151D4B9E66008301A7 /* Base */,
|
||||||
A9BA1ADA1DBF773700FD0B38 /* it */,
|
A9BA1ADA1DBF773700FD0B38 /* it */,
|
||||||
);
|
);
|
||||||
name = ArtworkSelector.xib;
|
name = ArtworkSelectorOld.xib;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */ = {
|
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */ = {
|
||||||
@@ -1338,8 +1363,11 @@
|
|||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = "";
|
CODE_SIGN_ENTITLEMENTS = Subler.entitlements;
|
||||||
|
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
COPY_PHASE_STRIP = NO;
|
COPY_PHASE_STRIP = NO;
|
||||||
|
DEVELOPMENT_TEAM = 5X9DE89KYV;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SRCROOT)\"",
|
"\"$(SRCROOT)\"",
|
||||||
@@ -1354,6 +1382,7 @@
|
|||||||
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
|
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
|
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
|
||||||
PRODUCT_NAME = Subler;
|
PRODUCT_NAME = Subler;
|
||||||
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
@@ -1369,7 +1398,10 @@
|
|||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = "";
|
CODE_SIGN_ENTITLEMENTS = Subler.entitlements;
|
||||||
|
CODE_SIGN_IDENTITY = "Mac Developer";
|
||||||
|
CODE_SIGN_STYLE = Automatic;
|
||||||
|
DEVELOPMENT_TEAM = 5X9DE89KYV;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"\"$(SRCROOT)\"",
|
"\"$(SRCROOT)\"",
|
||||||
@@ -1383,6 +1415,7 @@
|
|||||||
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
|
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
|
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
|
||||||
PRODUCT_NAME = Subler;
|
PRODUCT_NAME = Subler;
|
||||||
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||||
@@ -1394,6 +1427,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
|
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
|
||||||
|
CLANG_ANALYZER_GCD_PERFORMANCE = YES;
|
||||||
CLANG_ANALYZER_LOCALIZABILITY = YES;
|
CLANG_ANALYZER_LOCALIZABILITY = YES;
|
||||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
@@ -1431,6 +1465,7 @@
|
|||||||
GCC_C_LANGUAGE_STANDARD = c11;
|
GCC_C_LANGUAGE_STANDARD = c11;
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = "";
|
||||||
GCC_VERSION = "";
|
GCC_VERSION = "";
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
|
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
|
||||||
@@ -1463,6 +1498,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
|
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
|
||||||
|
CLANG_ANALYZER_GCD_PERFORMANCE = YES;
|
||||||
CLANG_ANALYZER_LOCALIZABILITY = YES;
|
CLANG_ANALYZER_LOCALIZABILITY = YES;
|
||||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||||
CLANG_ANALYZER_NONNULL = YES;
|
CLANG_ANALYZER_NONNULL = YES;
|
||||||
@@ -1496,6 +1532,7 @@
|
|||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = c11;
|
GCC_C_LANGUAGE_STANDARD = c11;
|
||||||
GCC_NO_COMMON_BLOCKS = YES;
|
GCC_NO_COMMON_BLOCKS = YES;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = "";
|
||||||
GCC_VERSION = "";
|
GCC_VERSION = "";
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
|
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user