More swift conversions.
This commit is contained in:
24 files changed
+259
-308
No files matched your search
@@ -1,13 +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="11542" systemVersion="16B2555" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11542"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||||
<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="SBExceptionAlertController">
|
<customObject id="-2" userLabel="File's Owner" customClass="ExceptionAlertController" customModule="Subler" customModuleProvider="target">
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="exceptionBacktraceTextView" destination="22" id="zKB-84-b61"/>
|
||||||
|
<outlet property="exceptionMessageTextField" destination="11" id="ibU-uB-cXG"/>
|
||||||
<outlet property="window" destination="1" id="17"/>
|
<outlet property="window" destination="1" id="17"/>
|
||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
@@ -48,16 +50,9 @@
|
|||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||||
</textFieldCell>
|
</textFieldCell>
|
||||||
<connections>
|
|
||||||
<binding destination="-2" name="value" keyPath="exceptionMessage" id="27">
|
|
||||||
<dictionary key="options">
|
|
||||||
<bool key="NSAllowsEditingMultipleValuesSelection" value="NO"/>
|
|
||||||
</dictionary>
|
|
||||||
</binding>
|
|
||||||
</connections>
|
|
||||||
</textField>
|
</textField>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="13">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="13">
|
||||||
<rect key="frame" x="456" y="12" width="76" height="32"/>
|
<rect key="frame" x="452" y="12" width="76" height="32"/>
|
||||||
<buttonCell key="cell" type="push" title="Crash" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="14">
|
<buttonCell key="cell" type="push" title="Crash" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="14">
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
@@ -88,20 +83,20 @@ DQ
|
|||||||
<rect key="frame" x="1" y="1" width="594" height="211"/>
|
<rect key="frame" x="1" y="1" width="594" height="211"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<textView importsGraphics="NO" usesFontPanel="YES" findStyle="panel" continuousSpellChecking="YES" allowsUndo="YES" usesRuler="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" smartInsertDelete="YES" id="22">
|
<textView importsGraphics="NO" verticallyResizable="YES" usesFontPanel="YES" findStyle="panel" continuousSpellChecking="YES" allowsUndo="YES" usesRuler="YES" allowsNonContiguousLayout="YES" spellingCorrection="YES" smartInsertDelete="YES" id="22">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="594" height="211"/>
|
<rect key="frame" x="0.0" y="0.0" width="594" height="211"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
<size key="minSize" width="594" height="211"/>
|
<size key="minSize" width="594" height="211"/>
|
||||||
<size key="maxSize" width="759" height="10000000"/>
|
<size key="maxSize" width="759" height="10000000"/>
|
||||||
<color key="insertionPointColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="insertionPointColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
<connections>
|
|
||||||
<binding destination="-2" name="attributedString" keyPath="exceptionBacktrace" id="28"/>
|
|
||||||
</connections>
|
|
||||||
</textView>
|
</textView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
</clipView>
|
</clipView>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="596" id="hyx-eM-hYP"/>
|
||||||
|
</constraints>
|
||||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="21">
|
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="21">
|
||||||
<rect key="frame" x="-100" y="-100" width="87" height="18"/>
|
<rect key="frame" x="-100" y="-100" width="87" height="18"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
@@ -114,20 +109,22 @@ DQ
|
|||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="13" firstAttribute="baseline" secondItem="15" secondAttribute="baseline" id="151-d0-8fh"/>
|
<constraint firstItem="13" firstAttribute="baseline" secondItem="15" secondAttribute="baseline" id="151-d0-8fh"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="15" secondAttribute="trailing" constant="19" id="1Wc-zm-rp3"/>
|
||||||
<constraint firstItem="3" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="4mr-yY-vZS"/>
|
<constraint firstItem="3" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="4mr-yY-vZS"/>
|
||||||
|
<constraint firstItem="19" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="20" id="5co-AN-gaw"/>
|
||||||
<constraint firstItem="9" firstAttribute="leading" secondItem="11" secondAttribute="leading" id="COx-ae-3pb"/>
|
<constraint firstItem="9" firstAttribute="leading" secondItem="11" secondAttribute="leading" id="COx-ae-3pb"/>
|
||||||
<constraint firstItem="3" firstAttribute="leading" secondItem="19" secondAttribute="leading" id="JPf-cu-UPl"/>
|
|
||||||
<constraint firstItem="13" firstAttribute="top" secondItem="19" secondAttribute="bottom" constant="20" symbolic="YES" id="OA0-no-6w6"/>
|
<constraint firstItem="13" firstAttribute="top" secondItem="19" secondAttribute="bottom" constant="20" symbolic="YES" id="OA0-no-6w6"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="13" secondAttribute="bottom" constant="19" id="OSL-Ck-iYd"/>
|
<constraint firstAttribute="bottom" secondItem="13" secondAttribute="bottom" constant="19" id="OSL-Ck-iYd"/>
|
||||||
|
<constraint firstAttribute="trailing" secondItem="19" secondAttribute="trailing" constant="20" id="OvY-Yp-ggn"/>
|
||||||
|
<constraint firstItem="22" firstAttribute="top" secondItem="3" secondAttribute="bottom" constant="17" id="Poc-rB-g0i"/>
|
||||||
<constraint firstItem="3" firstAttribute="top" secondItem="9" secondAttribute="top" id="WcA-aJ-Wo7"/>
|
<constraint firstItem="3" firstAttribute="top" secondItem="9" secondAttribute="top" id="WcA-aJ-Wo7"/>
|
||||||
<constraint firstItem="9" firstAttribute="centerX" secondItem="11" secondAttribute="centerX" id="Yaj-FU-LT1"/>
|
<constraint firstItem="9" firstAttribute="centerX" secondItem="11" secondAttribute="centerX" id="Yaj-FU-LT1"/>
|
||||||
<constraint firstItem="15" firstAttribute="leading" secondItem="13" secondAttribute="trailing" constant="8" id="bcL-Zd-ssY"/>
|
<constraint firstItem="15" firstAttribute="leading" secondItem="13" secondAttribute="trailing" constant="12" symbolic="YES" id="bcL-Zd-ssY"/>
|
||||||
<constraint firstItem="9" firstAttribute="trailing" secondItem="15" secondAttribute="trailing" id="diI-dN-cee"/>
|
|
||||||
<constraint firstItem="11" firstAttribute="top" secondItem="9" secondAttribute="bottom" id="jcH-Bs-23D"/>
|
<constraint firstItem="11" firstAttribute="top" secondItem="9" secondAttribute="bottom" id="jcH-Bs-23D"/>
|
||||||
<constraint firstItem="19" firstAttribute="top" secondItem="11" secondAttribute="bottom" constant="16" id="ljq-tU-pxH"/>
|
<constraint firstItem="19" firstAttribute="top" secondItem="11" secondAttribute="bottom" constant="16" id="ljq-tU-pxH"/>
|
||||||
|
<constraint firstItem="13" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="2" secondAttribute="leading" constant="20" symbolic="YES" id="p8I-cK-tba"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="11" secondAttribute="trailing" constant="20" symbolic="YES" id="prO-CA-w12"/>
|
<constraint firstAttribute="trailing" secondItem="11" secondAttribute="trailing" constant="20" symbolic="YES" id="prO-CA-w12"/>
|
||||||
<constraint firstItem="9" firstAttribute="leading" secondItem="3" secondAttribute="trailing" constant="7" id="rBG-CM-Sii"/>
|
<constraint firstItem="9" firstAttribute="leading" secondItem="3" secondAttribute="trailing" constant="7" id="rBG-CM-Sii"/>
|
||||||
<constraint firstItem="11" firstAttribute="trailing" secondItem="19" secondAttribute="trailing" id="tmc-U0-18N"/>
|
|
||||||
<constraint firstItem="3" firstAttribute="top" secondItem="2" secondAttribute="top" constant="20" symbolic="YES" id="w2L-zU-qMY"/>
|
<constraint firstItem="3" firstAttribute="top" secondItem="2" secondAttribute="top" constant="20" symbolic="YES" id="w2L-zU-qMY"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<rect key="frame" x="1" y="0.0" width="602" height="188"/>
|
<rect key="frame" x="1" y="0.0" width="602" height="188"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="d1E-cV-kwd" viewBased="YES" id="7" customClass="SBTableView">
|
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="d1E-cV-kwd" viewBased="YES" id="7" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="602" height="165"/>
|
<rect key="frame" x="0.0" y="0.0" width="602" height="165"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13526" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13526"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||||
<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>
|
||||||
@@ -402,7 +402,7 @@ DQ
|
|||||||
<rect key="frame" x="1" y="0.0" width="508" height="238"/>
|
<rect key="frame" x="1" y="0.0" width="508" height="238"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" headerView="20" id="19" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" headerView="20" id="19" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="508" height="215"/>
|
<rect key="frame" x="0.0" y="0.0" width="508" height="215"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<rect key="frame" x="1" y="1" width="378" height="285"/>
|
<rect key="frame" x="1" y="1" width="378" height="285"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" viewBased="YES" id="7" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" viewBased="YES" id="7" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="383" height="285"/>
|
<rect key="frame" x="0.0" y="0.0" width="383" height="285"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="4"/>
|
<size key="intercellSpacing" width="3" height="4"/>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<rect key="frame" x="1" y="0.0" width="690" height="144"/>
|
<rect key="frame" x="1" y="0.0" width="690" height="144"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="100032" viewBased="YES" id="100031" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="100032" viewBased="YES" id="100031" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="690" height="121"/>
|
<rect key="frame" x="0.0" y="0.0" width="690" height="121"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
<rect key="frame" x="1" y="0.0" width="471" height="295"/>
|
<rect key="frame" x="1" y="0.0" width="471" height="295"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" 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="471" height="272"/>
|
<rect key="frame" x="0.0" y="0.0" width="471" height="272"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13189.4" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13189.4"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||||
<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>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<rect key="frame" x="1" y="1" width="354" height="198"/>
|
<rect key="frame" x="1" y="1" width="354" height="198"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="firstColumnOnly" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowSizeStyle="automatic" viewBased="YES" id="iRF-P7-a3Q" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="firstColumnOnly" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowSizeStyle="automatic" viewBased="YES" id="iRF-P7-a3Q" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="354" height="198"/>
|
<rect key="frame" x="0.0" y="0.0" width="354" height="198"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
//
|
||||||
|
// ExceptionAlertController.swift
|
||||||
|
// Subler
|
||||||
|
//
|
||||||
|
// Created by Damiano Galassi on 20/10/2017.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Cocoa
|
||||||
|
|
||||||
|
class ExceptionAlertController: NSWindowController {
|
||||||
|
|
||||||
|
@IBOutlet var exceptionMessageTextField: NSTextField!
|
||||||
|
@IBOutlet var exceptionBacktraceTextView: NSTextView!
|
||||||
|
|
||||||
|
private let exceptionMessage: String
|
||||||
|
private let exceptionBacktrace: NSAttributedString
|
||||||
|
|
||||||
|
@objc init(exceptionMessage: String, exceptionBacktrace: NSAttributedString) {
|
||||||
|
self.exceptionMessage = exceptionMessage
|
||||||
|
self.exceptionBacktrace = exceptionBacktrace
|
||||||
|
super.init(window: nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
required init?(coder: NSCoder) {
|
||||||
|
fatalError("init(coder:) has not been implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
override public var windowNibName: NSNib.Name? {
|
||||||
|
return NSNib.Name(rawValue: "ExceptionAlert")
|
||||||
|
}
|
||||||
|
|
||||||
|
override func windowDidLoad() {
|
||||||
|
super.windowDidLoad()
|
||||||
|
exceptionMessageTextField.stringValue = exceptionMessage
|
||||||
|
exceptionBacktraceTextView.textStorage?.append(exceptionBacktrace)
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func btnCrashClicked(_ sender: Any) {
|
||||||
|
window?.orderOut(self)
|
||||||
|
NSApp.stopModal(withCode: NSApplication.ModalResponse.stop)
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func btnContinueClicked(_ sender: Any) {
|
||||||
|
window?.orderOut(self)
|
||||||
|
NSApp.stopModal(withCode: NSApplication.ModalResponse.continue)
|
||||||
|
}
|
||||||
|
|
||||||
|
@objc func runModal() -> NSApplication.ModalResponse {
|
||||||
|
return NSApp.runModal(for: window!)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,142 @@
|
|||||||
|
//
|
||||||
|
// TableView.swift
|
||||||
|
// Subler
|
||||||
|
//
|
||||||
|
// Created by Damiano Galassi on 20/10/2017.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Cocoa
|
||||||
|
|
||||||
|
@objc protocol ExpandedTableViewDelegate: NSTableViewDelegate {
|
||||||
|
@objc optional func deleteSelection(in tableview: NSTableView)
|
||||||
|
@objc optional func copySelection(in tableview: NSTableView)
|
||||||
|
@objc optional func cutSelection(in tableview: NSTableView)
|
||||||
|
@objc optional func paste(to tableview: NSTableView)
|
||||||
|
}
|
||||||
|
|
||||||
|
class ExpandedTableView: NSTableView {
|
||||||
|
|
||||||
|
@objc var pasteboardTypes: [NSPasteboard.PasteboardType]
|
||||||
|
var pasteboardHasSupportedType: Bool {
|
||||||
|
get {
|
||||||
|
// has the pasteboard got a type we support?
|
||||||
|
let pb = NSPasteboard.general
|
||||||
|
let bestType = pb.availableType(from: pasteboardTypes)
|
||||||
|
return bestType != nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var targetedRowIndexes: IndexSet {
|
||||||
|
get {
|
||||||
|
let selection = self.selectedRowIndexes
|
||||||
|
let clickedRow = self.clickedRow
|
||||||
|
|
||||||
|
if clickedRow != -1 && selection.contains(clickedRow) == false {
|
||||||
|
return IndexSet(integer: clickedRow)
|
||||||
|
} else {
|
||||||
|
return selection
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@objc var defaultEditingColumn: Int
|
||||||
|
|
||||||
|
private var expandedDelegate: ExpandedTableViewDelegate? {
|
||||||
|
get {
|
||||||
|
return delegate as? ExpandedTableViewDelegate
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override init(frame frameRect: NSRect) {
|
||||||
|
pasteboardTypes = Array()
|
||||||
|
defaultEditingColumn = 0
|
||||||
|
super.init(frame: frameRect)
|
||||||
|
}
|
||||||
|
|
||||||
|
required init?(coder: NSCoder) {
|
||||||
|
pasteboardTypes = Array()
|
||||||
|
defaultEditingColumn = 0
|
||||||
|
super.init(coder: coder)
|
||||||
|
}
|
||||||
|
|
||||||
|
override func keyDown(with event: NSEvent) {
|
||||||
|
|
||||||
|
guard let key = event.charactersIgnoringModifiers?.utf16.first else { super.keyDown(with: event); return }
|
||||||
|
|
||||||
|
if key == NSEnterCharacter || key == NSCarriageReturnCharacter && defaultEditingColumn > 0 {
|
||||||
|
editColumn(defaultEditingColumn, row: selectedRow, with: nil, select: true)
|
||||||
|
}
|
||||||
|
else if (key == NSDeleteCharacter || key == NSDeleteFunctionKey) && implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) {
|
||||||
|
if selectedRow == -1 {
|
||||||
|
__NSBeep()
|
||||||
|
} else {
|
||||||
|
expandedDelegate?.deleteSelection!(in: self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if key == 27 && selectedRow != -1 {
|
||||||
|
deselectAll(self)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
super.keyDown(with: event)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private func implements(selector: Selector) -> Bool {
|
||||||
|
if let implemented = expandedDelegate?.responds(to: selector),
|
||||||
|
implemented == true {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func delete(_ sender: Any?) {
|
||||||
|
if selectedRow != -1 && implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) {
|
||||||
|
expandedDelegate?.deleteSelection!(in: self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func copy(_ sender: Any?) {
|
||||||
|
if selectedRow != -1 && implements(selector: #selector(ExpandedTableViewDelegate.copySelection(in:))) {
|
||||||
|
expandedDelegate?.copySelection!(in: self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func cut(_ sender: Any?) {
|
||||||
|
if selectedRow != -1 && implements(selector: #selector(ExpandedTableViewDelegate.cutSelection(in:))) {
|
||||||
|
expandedDelegate?.cutSelection!(in: self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func paste(_ sender: Any?) {
|
||||||
|
if implements(selector: #selector(ExpandedTableViewDelegate.paste(to:))) {
|
||||||
|
expandedDelegate?.paste!(to: self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
|
||||||
|
if let action = menuItem.action {
|
||||||
|
switch action {
|
||||||
|
case #selector(delete(_:)):
|
||||||
|
if selectedRow != -1 || implements(selector: #selector(ExpandedTableViewDelegate.deleteSelection(in:))) == false {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
case #selector(copy(_:)):
|
||||||
|
if selectedRow != -1 || implements(selector: #selector(ExpandedTableViewDelegate.copySelection(in:))) == false{
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
case #selector(cut(_:)):
|
||||||
|
if selectedRow != -1 || implements(selector: #selector(ExpandedTableViewDelegate.cutSelection(in:))) == false {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
case #selector(paste(_:)):
|
||||||
|
if pasteboardHasSupportedType == false || implements(selector: #selector(ExpandedTableViewDelegate.paste(to:))) == false {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -169,7 +169,7 @@ class FileImportController: NSWindowController, NSTableViewDataSource, NSTableVi
|
|||||||
private var importMetadata: Bool
|
private var importMetadata: Bool
|
||||||
private weak var delegate: FileImportControllerDelegate?
|
private weak var delegate: FileImportControllerDelegate?
|
||||||
|
|
||||||
@IBOutlet var tableView: SBTableView!
|
@IBOutlet var tableView: ExpandedTableView!
|
||||||
@IBOutlet var importMetadataCheckbox: NSButton!
|
@IBOutlet var importMetadataCheckbox: NSButton!
|
||||||
|
|
||||||
override public var windowNibName: NSNib.Name? {
|
override public var windowNibName: NSNib.Name? {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13528" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13528"/>
|
||||||
<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>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<rect key="frame" x="1" y="0.0" width="446" height="194"/>
|
<rect key="frame" x="1" y="0.0" width="446" height="194"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="14" headerView="23" id="22" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="14" headerView="23" id="22" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="446" height="177"/>
|
<rect key="frame" x="0.0" y="0.0" width="446" height="177"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
<rect key="frame" x="1" y="0.0" width="446" height="194"/>
|
<rect key="frame" x="1" y="0.0" width="446" height="194"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="SBTableView">
|
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" 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="171"/>
|
<rect key="frame" x="0.0" y="0.0" width="446" height="171"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<size key="intercellSpacing" width="3" height="2"/>
|
<size key="intercellSpacing" width="3" height="2"/>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import "SBChapterViewController.h"
|
#import "SBChapterViewController.h"
|
||||||
#import "SBTableView.h"
|
#import "Subler-Swift.h"
|
||||||
|
|
||||||
#import <MP42Foundation/MP42Utilities.h>
|
#import <MP42Foundation/MP42Utilities.h>
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
{
|
{
|
||||||
NSDictionary *detailBoldAttr;
|
NSDictionary *detailBoldAttr;
|
||||||
|
|
||||||
IBOutlet SBTableView *chapterTableView;
|
IBOutlet ExpandedTableView *chapterTableView;
|
||||||
IBOutlet NSButton *removeChapter;
|
IBOutlet NSButton *removeChapter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ NSString *SublerMetadataPBoardType = @"SublerMetadataPBoardTypeV2";
|
|||||||
NSString *SublerCoverArtPBoardType = @"SublerCoverArtPBoardType";
|
NSString *SublerCoverArtPBoardType = @"SublerCoverArtPBoardType";
|
||||||
|
|
||||||
#import "SBMovieViewController.h"
|
#import "SBMovieViewController.h"
|
||||||
#import "SBTableView.h"
|
|
||||||
#import "SBImageBrowserView.h"
|
#import "SBImageBrowserView.h"
|
||||||
|
|
||||||
#import <MP42Foundation/MP42Ratings.h>
|
#import <MP42Foundation/MP42Ratings.h>
|
||||||
@@ -20,7 +19,7 @@ NSString *SublerCoverArtPBoardType = @"SublerCoverArtPBoardType";
|
|||||||
|
|
||||||
#import "Subler-Swift.h"
|
#import "Subler-Swift.h"
|
||||||
|
|
||||||
@interface SBMovieViewController () <NSTableViewDataSource, SBTableViewDelegate, SBImageBrowserViewDelegate>
|
@interface SBMovieViewController () <NSTableViewDataSource, ExpandedTableViewDelegate, SBImageBrowserViewDelegate>
|
||||||
|
|
||||||
// Metadata tab
|
// Metadata tab
|
||||||
@property (nonatomic) NSArray<MP42MetadataItem *> *tags;
|
@property (nonatomic) NSArray<MP42MetadataItem *> *tags;
|
||||||
@@ -39,7 +38,7 @@ NSString *SublerCoverArtPBoardType = @"SublerCoverArtPBoardType";
|
|||||||
@property (nonatomic, weak) IBOutlet NSPopUpButton *setsPopUp;
|
@property (nonatomic, weak) IBOutlet NSPopUpButton *setsPopUp;
|
||||||
|
|
||||||
@property (nonatomic, weak) IBOutlet NSButton *removeTagButton;
|
@property (nonatomic, weak) IBOutlet NSButton *removeTagButton;
|
||||||
@property (nonatomic, weak) IBOutlet SBTableView *metadataTableView;
|
@property (nonatomic, weak) IBOutlet ExpandedTableView *metadataTableView;
|
||||||
|
|
||||||
// Artwork tab
|
// Artwork tab
|
||||||
@property (nonatomic, weak) IBOutlet NSButton *removeArtworkButton;
|
@property (nonatomic, weak) IBOutlet NSButton *removeArtworkButton;
|
||||||
@@ -691,14 +690,14 @@ static NSArray<NSArray *> *_mediaKinds;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_deleteSelectionFromTableView:(NSTableView *)tableView;
|
- (void)deleteSelectionIn:(NSTableView *)tableview
|
||||||
{
|
{
|
||||||
[self removeTag:tableView];
|
[self removeTag:tableview];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_copySelectionFromTableView:(NSTableView *)tableView;
|
- (void)copySelectionIn:(NSTableView *)tableview
|
||||||
{
|
{
|
||||||
NSIndexSet *rowIndexes = tableView.selectedRowIndexes;
|
NSIndexSet *rowIndexes = tableview.selectedRowIndexes;
|
||||||
NSArray<MP42MetadataItem *> *items = [self.tags objectsAtIndexes:rowIndexes];
|
NSArray<MP42MetadataItem *> *items = [self.tags objectsAtIndexes:rowIndexes];
|
||||||
|
|
||||||
NSMutableString *string = [NSMutableString string];
|
NSMutableString *string = [NSMutableString string];
|
||||||
@@ -713,13 +712,13 @@ static NSArray<NSArray *> *_mediaKinds;
|
|||||||
[pb setData:[NSKeyedArchiver archivedDataWithRootObject:items] forType:SublerMetadataPBoardType];
|
[pb setData:[NSKeyedArchiver archivedDataWithRootObject:items] forType:SublerMetadataPBoardType];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_cutSelectionFromTableView:(NSTableView *)tableView;
|
- (void)cutSelectionIn:(NSTableView *)tableview
|
||||||
{
|
{
|
||||||
[self _copySelectionFromTableView:tableView];
|
[self copySelectionIn:tableview];
|
||||||
[self removeTag:tableView];
|
[self removeTag:tableview];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_pasteToTableView:(NSTableView *)tableView
|
- (void)pasteTo:(NSTableView *)tableview
|
||||||
{
|
{
|
||||||
NSPasteboard *pb = [NSPasteboard generalPasteboard];
|
NSPasteboard *pb = [NSPasteboard generalPasteboard];
|
||||||
NSData *archivedData = [pb dataForType:SublerMetadataPBoardType];
|
NSData *archivedData = [pb dataForType:SublerMetadataPBoardType];
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#import "SBApplication.h"
|
#import "SBApplication.h"
|
||||||
#import "SBExceptionAlertController.h"
|
#import "Subler-Swift.h"
|
||||||
|
|
||||||
@implementation SBApplication
|
@implementation SBApplication
|
||||||
|
|
||||||
@@ -37,12 +37,10 @@ static void CrashMyApplication()
|
|||||||
// Create a string based on the exception
|
// Create a string based on the exception
|
||||||
NSString *exceptionMessage = [NSString stringWithFormat:@"%@\nReason: %@\nUser Info: %@", exception.name, exception.reason, exception.userInfo];
|
NSString *exceptionMessage = [NSString stringWithFormat:@"%@\nReason: %@\nUser Info: %@", exception.name, exception.reason, exception.userInfo];
|
||||||
|
|
||||||
SBExceptionAlertController *alertController = [[SBExceptionAlertController alloc] init];
|
ExceptionAlertController *alertController = [[ExceptionAlertController alloc] initWithExceptionMessage:exceptionMessage exceptionBacktrace:[self _formattedExceptionBacktrace:exception.callStackSymbols]];
|
||||||
alertController.exceptionMessage = exceptionMessage;
|
|
||||||
alertController.exceptionBacktrace = [self _formattedExceptionBacktrace:exception.callStackSymbols];
|
|
||||||
|
|
||||||
NSInteger result = [alertController runModal];
|
NSInteger result = [alertController runModal];
|
||||||
if (result == SBExceptionAlertControllerResultCrash)
|
if (result == NSModalResponseStop)
|
||||||
{
|
{
|
||||||
CrashMyApplication();
|
CrashMyApplication();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@class MP42File;
|
@class MP42File;
|
||||||
@class SBTableView;
|
@class ExpandedTableView;
|
||||||
|
|
||||||
@interface SBDocument : NSDocument
|
@interface SBDocument : NSDocument
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
- (instancetype)initWithMP4:(MP42File *)mp4File error:(NSError * __autoreleasing *)outError;
|
- (instancetype)initWithMP4:(MP42File *)mp4File error:(NSError * __autoreleasing *)outError;
|
||||||
|
|
||||||
@property (nonatomic, weak) IBOutlet SBTableView *tracksTable;
|
@property (nonatomic, weak) IBOutlet ExpandedTableView *tracksTable;
|
||||||
@property (nonatomic, strong, nullable) NSWindowController *sheetController;
|
@property (nonatomic, strong, nullable) NSWindowController *sheetController;
|
||||||
|
|
||||||
- (IBAction)selectFile:(id)sender;
|
- (IBAction)selectFile:(id)sender;
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#import "SBDocument.h"
|
#import "SBDocument.h"
|
||||||
#import "SBQueueController.h"
|
#import "SBQueueController.h"
|
||||||
#import "SBQueueItem.h"
|
#import "SBQueueItem.h"
|
||||||
#import "SBTableView.h"
|
|
||||||
|
|
||||||
#import "SBEmptyViewController.h"
|
#import "SBEmptyViewController.h"
|
||||||
#import "SBMovieViewController.h"
|
#import "SBMovieViewController.h"
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
//
|
|
||||||
// SBLogger.m
|
|
||||||
// Subler
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
|
|
||||||
typedef NS_ENUM(NSUInteger, SBExceptionAlertControllerResult) {
|
|
||||||
SBExceptionAlertControllerResultCrash,
|
|
||||||
SBExceptionAlertControllerResultContinue,
|
|
||||||
};
|
|
||||||
|
|
||||||
@interface SBExceptionAlertController : NSWindowController {
|
|
||||||
NSString *_exceptionMessage;
|
|
||||||
NSAttributedString *_exceptionBacktrace;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Properties are used by bindings
|
|
||||||
@property (nonatomic, copy) NSString *exceptionMessage;
|
|
||||||
@property (nonatomic, copy) NSAttributedString *exceptionBacktrace;
|
|
||||||
|
|
||||||
- (IBAction)btnCrashClicked:(id)sender;
|
|
||||||
- (IBAction)btnContinueClicked:(id)sender;
|
|
||||||
|
|
||||||
- (NSInteger)runModal;
|
|
||||||
|
|
||||||
@end
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
//
|
|
||||||
// SBLogger.m
|
|
||||||
// Subler
|
|
||||||
//
|
|
||||||
|
|
||||||
#import "SBExceptionAlertController.h"
|
|
||||||
|
|
||||||
@implementation SBExceptionAlertController
|
|
||||||
|
|
||||||
- (instancetype)init
|
|
||||||
{
|
|
||||||
return [self initWithWindowNibName:@"ExceptionAlert"];
|
|
||||||
}
|
|
||||||
|
|
||||||
@synthesize exceptionBacktrace = _exceptionBacktrace;
|
|
||||||
@synthesize exceptionMessage = _exceptionMessage;
|
|
||||||
|
|
||||||
- (NSInteger)runModal
|
|
||||||
{
|
|
||||||
return [NSApp runModalForWindow:self.window];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)btnCrashClicked:(id)sender
|
|
||||||
{
|
|
||||||
[self.window orderOut:nil];
|
|
||||||
[NSApp stopModalWithCode:SBExceptionAlertControllerResultCrash];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)btnContinueClicked:(id)sender
|
|
||||||
{
|
|
||||||
[self.window orderOut:nil];
|
|
||||||
[NSApp stopModalWithCode:SBExceptionAlertControllerResultContinue];
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
#import "SBItemViewController.h"
|
#import "SBItemViewController.h"
|
||||||
|
|
||||||
#import "SBDocument.h"
|
#import "SBDocument.h"
|
||||||
#import "SBTableView.h"
|
|
||||||
|
|
||||||
#import <MP42Foundation/MP42FileImporter.h>
|
#import <MP42Foundation/MP42FileImporter.h>
|
||||||
|
|
||||||
@@ -24,12 +23,12 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
|
|
||||||
#define SublerBatchTableViewDataType @"SublerBatchTableViewDataType"
|
#define SublerBatchTableViewDataType @"SublerBatchTableViewDataType"
|
||||||
|
|
||||||
@interface SBQueueController () <NSPopoverDelegate, NSWindowDelegate, NSTableViewDelegate, NSTableViewDataSource, SBTableViewDelegate, SBItemViewDelegate>
|
@interface SBQueueController () <NSPopoverDelegate, NSWindowDelegate, NSTableViewDelegate, NSTableViewDataSource, ExpandedTableViewDelegate, SBItemViewDelegate>
|
||||||
|
|
||||||
@property (nonatomic, readonly) SBQueuePreferences *prefs;
|
@property (nonatomic, readonly) SBQueuePreferences *prefs;
|
||||||
@property (nonatomic, readonly) NSMutableDictionary<NSString *, id> *options;
|
@property (nonatomic, readonly) NSMutableDictionary<NSString *, id> *options;
|
||||||
|
|
||||||
@property (nonatomic, weak) IBOutlet SBTableView *table;
|
@property (nonatomic, weak) IBOutlet ExpandedTableView *table;
|
||||||
|
|
||||||
@property (nonatomic, readonly) NSImage *docImg;
|
@property (nonatomic, readonly) NSImage *docImg;
|
||||||
|
|
||||||
@@ -693,9 +692,9 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_deleteSelectionFromTableView:(NSTableView *)aTableView {
|
- (void)deleteSelectionIn:(NSTableView *)tableview {
|
||||||
NSMutableIndexSet *rowIndexes = [aTableView.selectedRowIndexes mutableCopy];
|
NSMutableIndexSet *rowIndexes = [tableview.selectedRowIndexes mutableCopy];
|
||||||
NSInteger clickedRow = aTableView.clickedRow;
|
NSInteger clickedRow = tableview.clickedRow;
|
||||||
NSUInteger selectedIndex = -1;
|
NSUInteger selectedIndex = -1;
|
||||||
|
|
||||||
if (rowIndexes.count) {
|
if (rowIndexes.count) {
|
||||||
@@ -717,9 +716,9 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rowIndexes.count) {
|
if (rowIndexes.count) {
|
||||||
[aTableView removeRowsAtIndexes:rowIndexes withAnimation:NSTableViewAnimationSlideUp];
|
[tableview removeRowsAtIndexes:rowIndexes withAnimation:NSTableViewAnimationSlideUp];
|
||||||
[self removeItems:array];
|
[self removeItems:array];
|
||||||
[aTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:selectedIndex] byExtendingSelection:NO];
|
[tableview selectRowIndexes:[NSIndexSet indexSetWithIndex:selectedIndex] byExtendingSelection:NO];
|
||||||
|
|
||||||
[self updateState];
|
[self updateState];
|
||||||
}
|
}
|
||||||
@@ -736,7 +735,7 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)removeSelectedItems:(id)sender {
|
- (IBAction)removeSelectedItems:(id)sender {
|
||||||
[self _deleteSelectionFromTableView:self.table];
|
[self deleteSelectionIn:self.table];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)removeCompletedItems:(id)sender {
|
- (IBAction)removeCompletedItems:(id)sender {
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
//
|
|
||||||
// SBTableView.h
|
|
||||||
// Subler
|
|
||||||
//
|
|
||||||
// Created by Damiano Galassi on 17/06/09.
|
|
||||||
// Copyright 2009 Damiano Galassi. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
|
||||||
|
|
||||||
@protocol SBTableViewDelegate <NSTableViewDelegate>
|
|
||||||
@optional
|
|
||||||
- (void)_deleteSelectionFromTableView:(NSTableView *)tableView;
|
|
||||||
- (void)_copySelectionFromTableView:(NSTableView *)tableView;
|
|
||||||
- (void)_cutSelectionFromTableView:(NSTableView *)tableView;
|
|
||||||
- (void)_pasteToTableView:(NSTableView *)tableView;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
@interface SBTableView : NSTableView
|
|
||||||
|
|
||||||
@property (nonatomic, readwrite, copy) NSArray<NSString *> *pasteboardTypes;
|
|
||||||
@property (nonatomic, readwrite) NSInteger defaultEditingColumn;
|
|
||||||
|
|
||||||
@property (nonatomic, readonly, copy) NSIndexSet *targetedRowIndexes;
|
|
||||||
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
|
||||||
@@ -1,135 +0,0 @@
|
|||||||
//
|
|
||||||
// SBTableView.m
|
|
||||||
// Subler
|
|
||||||
//
|
|
||||||
// Created by Damiano Galassi on 17/06/09.
|
|
||||||
// Copyright 2009 Damiano Galassi. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import "SBTableView.h"
|
|
||||||
|
|
||||||
|
|
||||||
@implementation SBTableView
|
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(NSRect)frame
|
|
||||||
{
|
|
||||||
self = [super initWithFrame:frame];
|
|
||||||
if (self) {
|
|
||||||
_pasteboardTypes = @[];
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (instancetype)initWithCoder:(NSCoder *)coder
|
|
||||||
{
|
|
||||||
self = [super initWithCoder:coder];
|
|
||||||
if (self) {
|
|
||||||
_pasteboardTypes = @[];
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)keyDown:(NSEvent *)event
|
|
||||||
{
|
|
||||||
id delegate = self.delegate;
|
|
||||||
|
|
||||||
unichar key = 0;
|
|
||||||
NSString *characters = event.charactersIgnoringModifiers;
|
|
||||||
if (characters.length) {
|
|
||||||
key = [characters characterAtIndex:0];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((key == NSEnterCharacter || key == NSCarriageReturnCharacter) &&
|
|
||||||
_defaultEditingColumn > 0) {
|
|
||||||
[self editColumn:_defaultEditingColumn row:self.selectedRow withEvent:nil select:YES];
|
|
||||||
[self editColumn:1 row:self.selectedRow withEvent:nil select:YES];
|
|
||||||
} else if ((key == NSDeleteCharacter || key == NSDeleteFunctionKey) &&
|
|
||||||
[delegate respondsToSelector:@selector(_deleteSelectionFromTableView:)]) {
|
|
||||||
if (self.selectedRow == -1) {
|
|
||||||
NSBeep();
|
|
||||||
} else {
|
|
||||||
[delegate _deleteSelectionFromTableView:self];
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
} else if (key == 27 && self.selectedRow != -1) {
|
|
||||||
[self deselectAll:self];
|
|
||||||
} else {
|
|
||||||
[super keyDown:event];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)delete:(id)sender
|
|
||||||
{
|
|
||||||
if (self.selectedRow == -1)
|
|
||||||
return;
|
|
||||||
else if ([self.delegate respondsToSelector:@selector(_deleteSelectionFromTableView:)])
|
|
||||||
[(id <SBTableViewDelegate>)self.delegate _deleteSelectionFromTableView:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)copy:(id)sender {
|
|
||||||
if (self.selectedRow == -1)
|
|
||||||
return;
|
|
||||||
else if ([self.delegate respondsToSelector:@selector(_copySelectionFromTableView:)])
|
|
||||||
[(id <SBTableViewDelegate>)self.delegate _copySelectionFromTableView:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)cut:(id)sender {
|
|
||||||
if (self.selectedRow == -1)
|
|
||||||
return;
|
|
||||||
else if ([self.delegate respondsToSelector:@selector(_cutSelectionFromTableView:)])
|
|
||||||
[(id <SBTableViewDelegate>)self.delegate _cutSelectionFromTableView:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)paste:(id)sender {
|
|
||||||
if ([self.delegate respondsToSelector:@selector(_pasteToTableView:)])
|
|
||||||
[(id <SBTableViewDelegate>)self.delegate _pasteToTableView:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)pasteboardHasSupportedType {
|
|
||||||
// has the pasteboard got a type we support?
|
|
||||||
NSPasteboard *pb = [NSPasteboard generalPasteboard];
|
|
||||||
NSString *bestType = [pb availableTypeFromArray:_pasteboardTypes];
|
|
||||||
return (bestType != nil);
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)validateMenuItem:(NSMenuItem *)item
|
|
||||||
{
|
|
||||||
id delegate = self.delegate;
|
|
||||||
SEL action = item.action;
|
|
||||||
|
|
||||||
if (action == @selector(delete:))
|
|
||||||
if (self.selectedRow == -1 ||
|
|
||||||
![delegate respondsToSelector:@selector(_deleteSelectionFromTableView:)])
|
|
||||||
return NO;
|
|
||||||
|
|
||||||
if (action == @selector(copy:))
|
|
||||||
if (self.selectedRow == -1 ||
|
|
||||||
![delegate respondsToSelector:@selector(_copySelectionFromTableView:)])
|
|
||||||
return NO;
|
|
||||||
|
|
||||||
if (action == @selector(cut:))
|
|
||||||
if (self.selectedRow == -1 ||
|
|
||||||
![delegate respondsToSelector:@selector(_cutSelectionFromTableView:)])
|
|
||||||
return NO;
|
|
||||||
|
|
||||||
if (action == @selector(paste:))
|
|
||||||
if (![self pasteboardHasSupportedType] ||
|
|
||||||
![delegate respondsToSelector:@selector(_pasteToTableView:)])
|
|
||||||
return NO;
|
|
||||||
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSIndexSet *)targetedRowIndexes
|
|
||||||
{
|
|
||||||
NSIndexSet *selection = self.selectedRowIndexes;
|
|
||||||
NSInteger clickedRow = self.clickedRow;
|
|
||||||
|
|
||||||
if (clickedRow != -1 && ![selection containsIndex:clickedRow]) {
|
|
||||||
selection = [NSIndexSet indexSetWithIndex:clickedRow];
|
|
||||||
}
|
|
||||||
|
|
||||||
return selection;
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
||||||
@@ -7,8 +7,6 @@
|
|||||||
#import "SBQueueAction.h"
|
#import "SBQueueAction.h"
|
||||||
#import "SBMovieViewController.h"
|
#import "SBMovieViewController.h"
|
||||||
|
|
||||||
#import "SBTableView.h"
|
|
||||||
|
|
||||||
#import <MP42Foundation/MP42Ratings.h>
|
#import <MP42Foundation/MP42Ratings.h>
|
||||||
#import <MP42Foundation/MP42Languages.h>
|
#import <MP42Foundation/MP42Languages.h>
|
||||||
#import <MP42Foundation/MP42Image.h>
|
#import <MP42Foundation/MP42Image.h>
|
||||||
|
|||||||
@@ -82,7 +82,6 @@
|
|||||||
A9AE26C21F3B665D0041A57D /* SBMultiSelectViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AE26C11F3B665C0041A57D /* SBMultiSelectViewController.m */; };
|
A9AE26C21F3B665D0041A57D /* SBMultiSelectViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AE26C11F3B665C0041A57D /* SBMultiSelectViewController.m */; };
|
||||||
A9AE70E11F2F7B3D001CF27C /* MetadataHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9AE70E01F2F7B3D001CF27C /* MetadataHelper.swift */; };
|
A9AE70E11F2F7B3D001CF27C /* MetadataHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9AE70E01F2F7B3D001CF27C /* MetadataHelper.swift */; };
|
||||||
A9AF6A7518D0496400FAAB08 /* SBQueueAction.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AF6A7418D0496400FAAB08 /* SBQueueAction.m */; };
|
A9AF6A7518D0496400FAAB08 /* SBQueueAction.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AF6A7418D0496400FAAB08 /* SBQueueAction.m */; };
|
||||||
A9B46A8F12B79B240040517A /* SBTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46A8512B79B240040517A /* SBTableView.m */; };
|
|
||||||
A9B46AA412B79BB10040517A /* Subler.icns in Resources */ = {isa = PBXBuildFile; fileRef = A9B46AA312B79BB10040517A /* Subler.icns */; };
|
A9B46AA412B79BB10040517A /* Subler.icns in Resources */ = {isa = PBXBuildFile; fileRef = A9B46AA312B79BB10040517A /* Subler.icns */; };
|
||||||
A9B46ABF12B79D1C0040517A /* SBDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46ABE12B79D1C0040517A /* SBDocument.m */; };
|
A9B46ABF12B79D1C0040517A /* SBDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46ABE12B79D1C0040517A /* SBDocument.m */; };
|
||||||
A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9B514181EFC12310055A035 /* TheTVDB.swift */; };
|
A9B514191EFC12310055A035 /* TheTVDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9B514181EFC12310055A035 /* TheTVDB.swift */; };
|
||||||
@@ -90,13 +89,14 @@
|
|||||||
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = A9BA1AF51DBF7DD800FD0B38 /* Localizable.strings */; };
|
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = A9BA1AF51DBF7DD800FD0B38 /* Localizable.strings */; };
|
||||||
A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9BC410218D9AB8700F8C92C /* SBItemViewController.m */; };
|
A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9BC410218D9AB8700F8C92C /* SBItemViewController.m */; };
|
||||||
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9BC410618D9ABC000F8C92C /* QueueItem.xib */; };
|
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9BC410618D9ABC000F8C92C /* QueueItem.xib */; };
|
||||||
|
A9C09C7C1F99F460007939EE /* ExceptionAlertController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C09C7B1F99F460007939EE /* ExceptionAlertController.swift */; };
|
||||||
|
A9C09C981F99F971007939EE /* ExpandedTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C09C971F99F971007939EE /* ExpandedTableView.swift */; };
|
||||||
A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */; };
|
A9C5FA7419FA2FEC0051F3FF /* SBActivityWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */; };
|
||||||
A9C828F5195950C3004C4718 /* SBQueuePreferences.m in Sources */ = {isa = PBXBuildFile; fileRef = A9C828F4195950C3004C4718 /* SBQueuePreferences.m */; };
|
A9C828F5195950C3004C4718 /* SBQueuePreferences.m in Sources */ = {isa = PBXBuildFile; fileRef = A9C828F4195950C3004C4718 /* SBQueuePreferences.m */; };
|
||||||
A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; };
|
A9CBAB1E1F29C083001C26B3 /* MetadataImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */; };
|
||||||
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; };
|
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9D4B8651C05BD04007845C4 /* SBChapterSearch.xib */; };
|
||||||
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 */; };
|
||||||
A9DA3B9D1B918D5C00F1E40C /* SBExceptionAlertController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B9B1B918D5C00F1E40C /* SBExceptionAlertController.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 */; };
|
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 */; };
|
||||||
@@ -272,8 +272,6 @@
|
|||||||
A9AF6A7318D0496400FAAB08 /* SBQueueAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueueAction.h; path = Classes/SBQueueAction.h; sourceTree = "<group>"; };
|
A9AF6A7318D0496400FAAB08 /* SBQueueAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueueAction.h; path = Classes/SBQueueAction.h; sourceTree = "<group>"; };
|
||||||
A9AF6A7418D0496400FAAB08 /* SBQueueAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueAction.m; path = Classes/SBQueueAction.m; sourceTree = "<group>"; };
|
A9AF6A7418D0496400FAAB08 /* SBQueueAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueAction.m; path = Classes/SBQueueAction.m; sourceTree = "<group>"; };
|
||||||
A9B3411B1679CA3E00E6EE0C /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = System/Library/Frameworks/QTKit.framework; sourceTree = SDKROOT; };
|
A9B3411B1679CA3E00E6EE0C /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = System/Library/Frameworks/QTKit.framework; sourceTree = SDKROOT; };
|
||||||
A9B46A8412B79B240040517A /* SBTableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBTableView.h; path = Classes/SBTableView.h; sourceTree = "<group>"; };
|
|
||||||
A9B46A8512B79B240040517A /* SBTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBTableView.m; path = Classes/SBTableView.m; sourceTree = "<group>"; };
|
|
||||||
A9B46AA312B79BB10040517A /* Subler.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = Subler.icns; path = images/Subler.icns; sourceTree = "<group>"; };
|
A9B46AA312B79BB10040517A /* Subler.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = Subler.icns; path = images/Subler.icns; sourceTree = "<group>"; };
|
||||||
A9B46ABD12B79D1C0040517A /* SBDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBDocument.h; path = Classes/SBDocument.h; sourceTree = "<group>"; };
|
A9B46ABD12B79D1C0040517A /* SBDocument.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBDocument.h; path = Classes/SBDocument.h; sourceTree = "<group>"; };
|
||||||
A9B46ABE12B79D1C0040517A /* SBDocument.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; name = SBDocument.m; path = Classes/SBDocument.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
|
A9B46ABE12B79D1C0040517A /* SBDocument.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; name = SBDocument.m; path = Classes/SBDocument.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
|
||||||
@@ -306,6 +304,8 @@
|
|||||||
A9BC410218D9AB8700F8C92C /* SBItemViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBItemViewController.m; path = Classes/SBItemViewController.m; sourceTree = "<group>"; };
|
A9BC410218D9AB8700F8C92C /* SBItemViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBItemViewController.m; path = Classes/SBItemViewController.m; sourceTree = "<group>"; };
|
||||||
A9C0603F168315C500FE3D98 /* libbz2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.dylib; path = usr/lib/libbz2.dylib; sourceTree = SDKROOT; };
|
A9C0603F168315C500FE3D98 /* libbz2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.dylib; path = usr/lib/libbz2.dylib; sourceTree = SDKROOT; };
|
||||||
A9C0957F0F7B6C8C00170CAF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; };
|
A9C0957F0F7B6C8C00170CAF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; };
|
||||||
|
A9C09C7B1F99F460007939EE /* ExceptionAlertController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ExceptionAlertController.swift; path = Classes/ExceptionAlertController.swift; sourceTree = "<group>"; };
|
||||||
|
A9C09C971F99F971007939EE /* ExpandedTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ExpandedTableView.swift; path = Classes/ExpandedTableView.swift; sourceTree = "<group>"; };
|
||||||
A9C8182C0F74D6E300019BFF /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = "<absolute>"; };
|
A9C8182C0F74D6E300019BFF /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = "<absolute>"; };
|
||||||
A9C828F3195950C3004C4718 /* SBQueuePreferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueuePreferences.h; path = Classes/SBQueuePreferences.h; sourceTree = "<group>"; };
|
A9C828F3195950C3004C4718 /* SBQueuePreferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueuePreferences.h; path = Classes/SBQueuePreferences.h; sourceTree = "<group>"; };
|
||||||
A9C828F4195950C3004C4718 /* SBQueuePreferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueuePreferences.m; path = Classes/SBQueuePreferences.m; sourceTree = "<group>"; };
|
A9C828F4195950C3004C4718 /* SBQueuePreferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueuePreferences.m; path = Classes/SBQueuePreferences.m; sourceTree = "<group>"; };
|
||||||
@@ -313,8 +313,6 @@
|
|||||||
A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueue.h; path = Classes/SBQueue.h; sourceTree = "<group>"; };
|
A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueue.h; path = Classes/SBQueue.h; sourceTree = "<group>"; };
|
||||||
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>"; };
|
||||||
A9DA3B9A1B918D5C00F1E40C /* SBExceptionAlertController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBExceptionAlertController.h; path = Classes/SBExceptionAlertController.h; sourceTree = "<group>"; };
|
|
||||||
A9DA3B9B1B918D5C00F1E40C /* SBExceptionAlertController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBExceptionAlertController.m; path = Classes/SBExceptionAlertController.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>"; };
|
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>"; };
|
||||||
@@ -467,8 +465,7 @@
|
|||||||
A90057BB1F99E20B00FA4ED1 /* CheckBoxCellView.swift */,
|
A90057BB1F99E20B00FA4ED1 /* CheckBoxCellView.swift */,
|
||||||
A90057BD1F99E2D800FA4ED1 /* TokenFieldCell.swift */,
|
A90057BD1F99E2D800FA4ED1 /* TokenFieldCell.swift */,
|
||||||
A90057BF1F99E35300FA4ED1 /* PopUpCellView.swift */,
|
A90057BF1F99E35300FA4ED1 /* PopUpCellView.swift */,
|
||||||
A9B46A8412B79B240040517A /* SBTableView.h */,
|
A9C09C971F99F971007939EE /* ExpandedTableView.swift */,
|
||||||
A9B46A8512B79B240040517A /* SBTableView.m */,
|
|
||||||
);
|
);
|
||||||
name = "Table View";
|
name = "Table View";
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -501,11 +498,11 @@
|
|||||||
children = (
|
children = (
|
||||||
A956CE641F99E5BB00093992 /* ActivityWindowController.swift */,
|
A956CE641F99E5BB00093992 /* ActivityWindowController.swift */,
|
||||||
A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */,
|
A9C5FA7219FA2FEC0051F3FF /* SBActivityWindow.xib */,
|
||||||
|
A9C09C7B1F99F460007939EE /* ExceptionAlertController.swift */,
|
||||||
|
A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */,
|
||||||
A956CE6A1F99EAAD00093992 /* Logger.swift */,
|
A956CE6A1F99EAAD00093992 /* Logger.swift */,
|
||||||
A9DA3BA01B918D6200F1E40C /* SBApplication.h */,
|
A9DA3BA01B918D6200F1E40C /* SBApplication.h */,
|
||||||
A9DA3B991B918D5C00F1E40C /* SBApplication.m */,
|
A9DA3B991B918D5C00F1E40C /* SBApplication.m */,
|
||||||
A9DA3B9A1B918D5C00F1E40C /* SBExceptionAlertController.h */,
|
|
||||||
A9DA3B9B1B918D5C00F1E40C /* SBExceptionAlertController.m */,
|
|
||||||
);
|
);
|
||||||
name = "Activity Log";
|
name = "Activity Log";
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -543,7 +540,6 @@
|
|||||||
A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */,
|
A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */,
|
||||||
A9BC410618D9ABC000F8C92C /* QueueItem.xib */,
|
A9BC410618D9ABC000F8C92C /* QueueItem.xib */,
|
||||||
A998DABD1BA54CFF004D7969 /* SBMediaTagsController.xib */,
|
A998DABD1BA54CFF004D7969 /* SBMediaTagsController.xib */,
|
||||||
A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */,
|
|
||||||
);
|
);
|
||||||
name = NIBs;
|
name = NIBs;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -818,6 +814,7 @@
|
|||||||
files = (
|
files = (
|
||||||
8D15AC320486D014006FF6A4 /* main.m in Sources */,
|
8D15AC320486D014006FF6A4 /* main.m in Sources */,
|
||||||
A9AB485617F0AEAC000AA72E /* SBMovieViewController.m in Sources */,
|
A9AB485617F0AEAC000AA72E /* SBMovieViewController.m in Sources */,
|
||||||
|
A9C09C7C1F99F460007939EE /* ExceptionAlertController.swift in Sources */,
|
||||||
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */,
|
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */,
|
||||||
A98D98481F02820F00A77ABC /* TheMovieDBService.swift in Sources */,
|
A98D98481F02820F00A77ABC /* TheMovieDBService.swift in Sources */,
|
||||||
A962D9EE1F8B7F9F00802EEF /* FileImportController.swift in Sources */,
|
A962D9EE1F8B7F9F00802EEF /* FileImportController.swift in Sources */,
|
||||||
@@ -825,14 +822,12 @@
|
|||||||
A9577CF61F3DC667009181F4 /* Document+Swift.swift in Sources */,
|
A9577CF61F3DC667009181F4 /* Document+Swift.swift in Sources */,
|
||||||
A9859ACE1F4B43CC00022828 /* QueuePreset.swift in Sources */,
|
A9859ACE1F4B43CC00022828 /* QueuePreset.swift in Sources */,
|
||||||
A9915AC31F4B293B003C57D1 /* PresetManager.swift in Sources */,
|
A9915AC31F4B293B003C57D1 /* PresetManager.swift in Sources */,
|
||||||
A9DA3B9D1B918D5C00F1E40C /* SBExceptionAlertController.m in Sources */,
|
|
||||||
A90BC5E31F3A139700F9F3F3 /* MetadataResult.swift in Sources */,
|
A90BC5E31F3A139700F9F3F3 /* MetadataResult.swift in Sources */,
|
||||||
A99189CD1F2F87EC00623ED7 /* ChapterImporter.swift in Sources */,
|
A99189CD1F2F87EC00623ED7 /* ChapterImporter.swift in Sources */,
|
||||||
A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */,
|
A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */,
|
||||||
A9AB484917F0AEA2000AA72E /* SBAppDelegate.m in Sources */,
|
A9AB484917F0AEA2000AA72E /* SBAppDelegate.m in Sources */,
|
||||||
A9915ABF1F4B26CF003C57D1 /* MetadataPreset.swift in Sources */,
|
A9915ABF1F4B26CF003C57D1 /* MetadataPreset.swift in Sources */,
|
||||||
A900CE3E1F3ACF9700CCA08E /* MetadataResultMap.swift in Sources */,
|
A900CE3E1F3ACF9700CCA08E /* MetadataResultMap.swift in Sources */,
|
||||||
A9B46A8F12B79B240040517A /* SBTableView.m in Sources */,
|
|
||||||
A9915AC11F4B28ED003C57D1 /* Preset.swift in Sources */,
|
A9915AC11F4B28ED003C57D1 /* Preset.swift in Sources */,
|
||||||
A92ECCE31F49984C0063BFBD /* PrefsWindowController.swift in Sources */,
|
A92ECCE31F49984C0063BFBD /* PrefsWindowController.swift in Sources */,
|
||||||
A96946531BA3F83D0048C004 /* SBMediaTagsController.m in Sources */,
|
A96946531BA3F83D0048C004 /* SBMediaTagsController.m in Sources */,
|
||||||
@@ -843,6 +838,7 @@
|
|||||||
A90057BE1F99E2D800FA4ED1 /* TokenFieldCell.swift in Sources */,
|
A90057BE1F99E2D800FA4ED1 /* TokenFieldCell.swift in Sources */,
|
||||||
A9395E351F8B9ACA004C402B /* MP42FileAdditions.swift in Sources */,
|
A9395E351F8B9ACA004C402B /* MP42FileAdditions.swift in Sources */,
|
||||||
A9A8CEF91E43754400BC2AE1 /* SBQueueScriptCommand.m in Sources */,
|
A9A8CEF91E43754400BC2AE1 /* SBQueueScriptCommand.m in Sources */,
|
||||||
|
A9C09C981F99F971007939EE /* ExpandedTableView.swift in Sources */,
|
||||||
A9B46ABF12B79D1C0040517A /* SBDocument.m in Sources */,
|
A9B46ABF12B79D1C0040517A /* SBDocument.m in Sources */,
|
||||||
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */,
|
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */,
|
||||||
A9E932A71F34D31D00B1790B /* ArtworkSelector.swift in Sources */,
|
A9E932A71F34D31D00B1790B /* ArtworkSelector.swift in Sources */,
|
||||||
|
|||||||
Reference in new issue
Block a user