Fixes a couple of issues on macOS 11 sdk.

This commit is contained in:
Damiano Galassi committed 2020-07-10 13:10:35 +02:00
1 parent 903d344b56
commit a51c3a28ce
12 files changed
+100 -78

No files matched your search

+12 -12
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15702" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="17132.0.2" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15702"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17132.0.2"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -11,6 +11,7 @@
<outlet property="editButton" destination="J0r-57-7ab" id="aR4-lN-fpm"/>
<outlet property="spinner" destination="fCV-gk-gLV" id="1Vf-98-EBX"/>
<outlet property="tableHeight" destination="str-CQ-ds2" id="Xho-rg-kXk"/>
<outlet property="tableView" destination="4Xn-YH-LzM" id="oEl-5m-XGo"/>
<outlet property="view" destination="c22-O7-iKe" id="eHa-ul-BOp"/>
</connections>
</customObject>
@@ -28,7 +29,7 @@
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<connections>
<binding destination="-2" name="value" keyPath="item.fileURL.lastPathComponent" id="viZ-d4-o7E"/>
<binding destination="-2" name="value" keyPath="self.name" id="KJR-7T-87z"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="MHQ-kr-DVS">
@@ -63,7 +64,7 @@
</textFieldCell>
<connections>
<accessibilityConnection property="title" destination="MHQ-kr-DVS" id="c4G-0h-IbA"/>
<binding destination="-2" name="value" keyPath="item.destURL.path" id="sAH-pe-Ka6"/>
<binding destination="-2" name="value" keyPath="self.destPath" id="NW6-M3-Krl"/>
</connections>
</textField>
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="200" translatesAutoresizingMaskIntoConstraints="NO" id="990-0E-nlL">
@@ -83,7 +84,7 @@
</textFieldCell>
<connections>
<accessibilityConnection property="title" destination="990-0E-nlL" id="hpj-zk-8Y6"/>
<binding destination="-2" name="value" keyPath="item.fileURL.path" id="B88-l8-ueE"/>
<binding destination="-2" name="value" keyPath="self.path" id="vzZ-g7-Y9F"/>
</connections>
</textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="J0r-57-7ab">
@@ -99,22 +100,21 @@
<progressIndicator hidden="YES" wantsLayer="YES" horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" translatesAutoresizingMaskIntoConstraints="NO" id="fCV-gk-gLV">
<rect key="frame" x="72" y="9" width="16" height="16"/>
</progressIndicator>
<scrollView focusRingType="none" borderType="none" autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Skr-vw-eHq" propertyAccessControl="all">
<scrollView focusRingType="none" borderType="none" autohidesScrollers="YES" horizontalLineScroll="16" horizontalPageScroll="10" verticalLineScroll="16" verticalPageScroll="10" hasHorizontalScroller="NO" hasVerticalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Skr-vw-eHq">
<rect key="frame" x="97" y="33" width="307" height="14"/>
<clipView key="contentView" drawsBackground="NO" copiesOnScroll="NO" id="hrx-7s-pPn">
<rect key="frame" x="0.0" y="0.0" width="307" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" selectionHighlightStyle="none" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="16" id="4Xn-YH-LzM">
<tableView focusRingType="none" verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" tableStyle="fullWidth" selectionHighlightStyle="none" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="16" id="4Xn-YH-LzM">
<rect key="frame" x="0.0" y="0.0" width="307" height="16"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="0.0"/>
<color key="backgroundColor" white="1" alpha="0.0" colorSpace="calibratedWhite"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn identifier="description" width="304" minWidth="40" maxWidth="1000" id="JVB-Fc-gGE">
<tableColumn identifier="description" width="295" minWidth="40" maxWidth="1000" id="JVB-Fc-gGE">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
<font key="font" metaFont="toolTip"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
</tableHeaderCell>
@@ -144,11 +144,11 @@
<constraint firstAttribute="height" constant="14" id="str-CQ-ds2"/>
</constraints>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" controlSize="small" horizontal="YES" id="8jW-hn-4e9">
<rect key="frame" x="0.0" y="0.0" width="307" height="14"/>
<rect key="frame" x="-100" y="-100" width="296" height="11"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" controlSize="small" horizontal="NO" id="oV7-Hw-8Au">
<rect key="frame" x="293" y="0.0" width="14" height="14"/>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" controlSize="small" horizontal="NO" id="oV7-Hw-8Au">
<rect key="frame" x="-100" y="-100" width="11" height="14"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
</scrollView>
+29 -35
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15702" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="17132.0.2" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15702"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17132.0.2"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -21,19 +21,18 @@
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2JQ-Gr-ZXk">
<rect key="frame" x="-1" y="0.0" width="738" height="250"/>
<clipView key="contentView" id="S5b-XK-rba">
<rect key="frame" x="1" y="0.0" width="736" height="249"/>
<rect key="frame" x="1" y="1" width="736" height="248"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" rowSizeStyle="automatic" headerView="etF-qp-SsT" viewBased="YES" id="Bpi-e7-pHx" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="736" height="226"/>
<rect key="frame" x="0.0" y="0.0" width="736" height="225"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn identifier="trackId" editable="NO" width="37" minWidth="30" maxWidth="38" id="sB1-FL-VRd">
<tableColumn identifier="trackId" editable="NO" width="35" minWidth="30" maxWidth="38" id="sB1-FL-VRd">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Id">
<font key="font" metaFont="toolTip"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
</tableHeaderCell>
@@ -45,11 +44,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="trackId" id="UQL-IB-uNb">
<rect key="frame" x="1" y="1" width="37" height="17"/>
<rect key="frame" x="1" y="1" width="40" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="MF3-VW-Szn">
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="97" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="n0U-5L-NwR">
<font key="font" metaFont="system"/>
@@ -63,11 +62,11 @@
</connections>
</tableCellView>
<tableCellView identifier="disabledIdCell" id="dn8-s8-to1">
<rect key="frame" x="1" y="20" width="37" height="17"/>
<rect key="frame" x="1" y="20" width="40" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="mZb-Gw-cvH">
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="97" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="bHw-nm-BXK">
<font key="font" metaFont="system"/>
@@ -82,9 +81,8 @@
</tableCellView>
</prototypeCellViews>
</tableColumn>
<tableColumn identifier="trackEnabled" width="19" minWidth="18" maxWidth="50" id="Znw-bQ-tsE">
<tableColumn identifier="trackEnabled" width="18" minWidth="18" maxWidth="50" id="Znw-bQ-tsE">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Enabled">
<font key="font" metaFont="toolTip"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
@@ -95,7 +93,7 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="trackEnabled" id="Gfc-fL-316" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="41" y="1" width="19" height="17"/>
<rect key="frame" x="44" y="1" width="18" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button toolTip="Enable or disable the track" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JD5-tO-uQc">
@@ -103,7 +101,7 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="o6r-HB-3TZ">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="toolTip"/>
<font key="font" usesAppearanceFont="YES"/>
</buttonCell>
<accessibility description="Enabled"/>
<connections>
@@ -117,9 +115,8 @@
</tableCellView>
</prototypeCellViews>
</tableColumn>
<tableColumn identifier="trackName" width="234" minWidth="100" maxWidth="3000" id="3zj-cH-wWV">
<tableColumn identifier="trackName" width="232" minWidth="100" maxWidth="3000" id="3zj-cH-wWV">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Name">
<font key="font" metaFont="toolTip"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
</tableHeaderCell>
@@ -131,11 +128,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="trackName" id="9fL-77-imQ">
<rect key="frame" x="63" y="1" width="234" height="17"/>
<rect key="frame" x="65" y="1" width="232" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gyX-Aq-rgC">
<rect key="frame" x="0.0" y="0.0" width="234" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="232" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Do not localize" id="3TN-xY-oN3">
<font key="font" metaFont="system"/>
@@ -153,9 +150,8 @@
</tableCellView>
</prototypeCellViews>
</tableColumn>
<tableColumn identifier="trackDuration" editable="NO" width="92" minWidth="92" maxWidth="92" id="0dC-Ux-mUt">
<tableColumn identifier="trackDuration" editable="NO" width="90" minWidth="90" maxWidth="92" id="0dC-Ux-mUt">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Duration">
<font key="font" metaFont="toolTip"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
@@ -167,11 +163,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="trackDuration" id="o3M-Vh-HrA">
<rect key="frame" x="300" y="1" width="92" height="17"/>
<rect key="frame" x="300" y="1" width="90" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3k9-Ev-UfR">
<rect key="frame" x="0.0" y="0.0" width="92" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="90" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="00:00:00" id="LAW-aU-7Ie">
<font key="font" metaFont="system"/>
@@ -186,9 +182,8 @@
</tableCellView>
</prototypeCellViews>
</tableColumn>
<tableColumn identifier="trackLanguage" width="169" minWidth="130" maxWidth="200" id="qGd-Uo-RvP">
<tableColumn identifier="trackLanguage" width="167.5" minWidth="130" maxWidth="200" id="qGd-Uo-RvP">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Language">
<font key="font" metaFont="toolTip"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
@@ -200,15 +195,15 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="trackLanguage" id="iMB-mM-hYa" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="395" y="1" width="169" height="17"/>
<rect key="frame" x="393" y="1" width="168" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<popUpButton fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Afo-xh-8aB">
<rect key="frame" x="3" y="0.0" width="163" height="18"/>
<rect key="frame" x="3" y="0.0" width="162" height="18"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
<popUpButtonCell key="cell" type="bevel" bezelStyle="regularSquare" alignment="right" lineBreakMode="truncatingTail" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" id="WuP-cy-d5d">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
<font key="font" metaFont="menu"/>
<menu key="menu" autoenablesItems="NO" id="kca-wV-cAJ"/>
</popUpButtonCell>
<connections>
@@ -222,9 +217,8 @@
</tableCellView>
</prototypeCellViews>
</tableColumn>
<tableColumn identifier="trackInfo" editable="NO" width="166" minWidth="80" maxWidth="440" id="vmh-dT-zIv">
<tableColumn identifier="trackInfo" editable="NO" width="164.5" minWidth="80" maxWidth="440" id="vmh-dT-zIv">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="right" title="Format">
<font key="font" metaFont="toolTip"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
</tableHeaderCell>
@@ -236,11 +230,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="trackInfo" id="gfy-Nm-dJU">
<rect key="frame" x="567" y="1" width="166" height="17"/>
<rect key="frame" x="563.5" y="1" width="168" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="aWa-JY-QEe">
<rect key="frame" x="0.0" y="0.0" width="166" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="168" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="3I9-re-Mst">
<font key="font" metaFont="system"/>
@@ -254,11 +248,11 @@
</connections>
</tableCellView>
<tableCellView identifier="DisabledFormatCell" id="Nfv-nQ-DF5">
<rect key="frame" x="567" y="20" width="166" height="17"/>
<rect key="frame" x="563.5" y="20" width="168" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ezM-ed-YTi">
<rect key="frame" x="0.0" y="0.0" width="166" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="168" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="y3u-NN-Et0">
<font key="font" metaFont="system"/>
@@ -283,14 +277,14 @@
</subviews>
</clipView>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="567-mm-ioo">
<rect key="frame" x="1" y="145" width="690" height="16"/>
<rect key="frame" x="1" y="234" width="736" height="15"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="ykl-Gd-tEc">
<rect key="frame" x="606" y="17" width="15" height="99"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="etF-qp-SsT">
<tableHeaderView key="headerView" wantsLayer="YES" id="etF-qp-SsT">
<rect key="frame" x="0.0" y="0.0" width="736" height="23"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
+1 -3
View File
@@ -37,11 +37,9 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
fatalError("`window` is expected to be non nil by this time.")
}
#if __MAC_10_16
if #available(macOS 10.16, *) {
window.toolbarStyle = .expanded
window.toolbarStyle = .unified
}
#endif
sendToQueue.image = NSImage(named: NSImage.shareTemplateName);
+13 -1
View File
@@ -13,7 +13,11 @@ protocol ItemViewDelegate: AnyObject {
final class ItemViewController : NSViewController {
@objc let item: QueueItem
@objc dynamic let item: QueueItem
@objc dynamic let name: String
@objc dynamic let path: String
@objc dynamic var destPath: String
private var delegate: ItemViewDelegate
@@ -23,6 +27,7 @@ final class ItemViewController : NSViewController {
@IBOutlet var editButton: NSButton!
@IBOutlet var spinner: NSProgressIndicator!
@IBOutlet var tableHeight: NSLayoutConstraint!
@IBOutlet var tableView: NSTableView!
override var nibName: NSNib.Name? {
return "QueueItem"
@@ -30,6 +35,9 @@ final class ItemViewController : NSViewController {
init(item: QueueItem, delegate: ItemViewDelegate) {
self.item = item
self.name = item.fileURL.lastPathComponent
self.path = item.fileURL.path
self.destPath = item.destURL.path
self.delegate = delegate
super.init(nibName: nil, bundle: nil)
}
@@ -40,11 +48,15 @@ final class ItemViewController : NSViewController {
override func viewDidLoad() {
super.viewDidLoad()
tableView.deselectAll(self)
// Observe the item status
statusObserver = item.observe(\.status, options: [.initial, .new]) { [weak self] observed, change in
guard let s = self else { return }
DispatchQueue.main.async {
s.destPath = observed.destURL.path
if observed.status == .ready || observed.status == .completed {
s.editButton.isEnabled = true
} else {
-2
View File
@@ -16,11 +16,9 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
override func windowDidLoad() {
super.windowDidLoad()
#if __MAC_10_16
if #available(macOS 10.16, *) {
window?.toolbarStyle = .preference
}
#endif
window?.toolbar?.allowsUserCustomization = false
window?.toolbar?.selectedItemIdentifier = general
-2
View File
@@ -59,11 +59,9 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
window?.tabbingMode = .disallowed
}
#if __MAC_10_16
if #available(macOS 10.16, *) {
window?.toolbarStyle = .unifiedCompact
}
#endif
table.registerForDraggedTypes([NSPasteboard.PasteboardType.backwardsCompatibleFileURL, tablePasteboardType])
progressBar.isHidden = true
-2
View File
@@ -1346,7 +1346,6 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "";
GCC_VERSION = "";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
@@ -1417,7 +1416,6 @@
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = "";
GCC_VERSION = "";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO;
+2 -2
View File
@@ -11,7 +11,7 @@
NSString *libraryPath = nil;
void logCallback(MP4LogLevel loglevel, const char* fmt, va_list ap)
static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap)
{
if (!libraryPath) {
NSString *libraryDir = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
@@ -42,8 +42,8 @@ void logCallback(MP4LogLevel loglevel, const char* fmt, va_list ap)
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification
{
MP4LogSetLevel(MP4_LOG_INFO);
MP4SetLogCallback(logCallback);
MP4LogSetLevel(MP4_LOG_INFO);
}
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
+11 -1
View File
@@ -23,6 +23,8 @@
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSTypeIsPackage</key>
<false/>
<key>NSDocumentClass</key>
@@ -50,6 +52,8 @@
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSTypeIsPackage</key>
<false/>
<key>NSDocumentClass</key>
@@ -75,6 +79,8 @@
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSTypeIsPackage</key>
<false/>
<key>NSDocumentClass</key>
@@ -91,6 +97,8 @@
<string>Movie</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array/>
<key>LSTypeIsPackage</key>
@@ -109,6 +117,8 @@
<string>Audiobook-MP4</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>NSDocumentClass</key>
<string>MyDocument</string>
</dict>
@@ -126,7 +136,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 53;
objects = {
/* Begin PBXBuildFile section */
@@ -29,6 +29,7 @@
2A37F4C5FDCFA73011CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
8D15AC360486D014006FF6A4 /* MP4Dump-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "MP4Dump-Info.plist"; sourceTree = "<group>"; };
8D15AC370486D014006FF6A4 /* MP4Dump.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MP4Dump.app; sourceTree = BUILT_PRODUCTS_DIR; };
A9208E9E24B778F000EE38E9 /* MP4Dump.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MP4Dump.entitlements; sourceTree = "<group>"; };
A936D5811D8303E20049CE46 /* libmp4v2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libmp4v2.a; path = ../../MP42Foundation/contrib/mp42v2/libmp4v2.a; sourceTree = SOURCE_ROOT; };
A9AF212A228AE860007D0F16 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
A9AF212B228AE860007D0F16 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
@@ -80,6 +81,7 @@
2A37F4AAFDCFA73011CA2CEA /* MP4Dump */ = {
isa = PBXGroup;
children = (
A9208E9E24B778F000EE38E9 /* MP4Dump.entitlements */,
2A37F4ABFDCFA73011CA2CEA /* Classes */,
2A37F4AFFDCFA73011CA2CEA /* Other Sources */,
2A37F4B8FDCFA73011CA2CEA /* Resources */,
@@ -158,10 +160,10 @@
2A37F4A9FDCFA73011CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1120;
LastUpgradeCheck = 1200;
};
buildConfigurationList = C05733CB08A9546B00998B17 /* Build configuration list for PBXProject "MP4Dump" */;
compatibilityVersion = "Xcode 9.3";
compatibilityVersion = "Xcode 11.4";
developmentRegion = en;
hasScannedForEncodings = 1;
knownRegions = (
@@ -248,6 +250,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_ENTITLEMENTS = MP4Dump.entitlements;
CODE_SIGN_IDENTITY = "-";
COMBINE_HIDPI_IMAGES = YES;
COPY_PHASE_STRIP = NO;
@@ -263,8 +266,10 @@
"$(inherited)",
"$(PROJECT_DIR)/../../MP42Foundation/contrib/**",
);
MARKETING_VERSION = 1.2;
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = MP4Dump;
SDKROOT = macosx;
};
name = Debug;
};
@@ -273,6 +278,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
CODE_SIGN_ENTITLEMENTS = MP4Dump.entitlements;
CODE_SIGN_IDENTITY = "-";
COMBINE_HIDPI_IMAGES = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
@@ -286,8 +292,10 @@
"$(inherited)",
"$(PROJECT_DIR)/../../MP42Foundation/contrib/**",
);
MARKETING_VERSION = 1.2;
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = MP4Dump;
SDKROOT = macosx;
};
name = Release;
};
@@ -295,7 +303,6 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
@@ -308,6 +315,7 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -315,7 +323,6 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -325,10 +332,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../MP42Foundation/contrib/**";
MACOSX_DEPLOYMENT_TARGET = 10.11;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
MACOSX_DEPLOYMENT_TARGET = 10.15;
};
name = Debug;
};
@@ -336,7 +340,6 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LIBRARY = "compiler-default";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
@@ -349,13 +352,13 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -364,10 +367,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../MP42Foundation/contrib/**";
MACOSX_DEPLOYMENT_TARGET = 10.11;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
MACOSX_DEPLOYMENT_TARGET = 10.15;
};
name = Release;
};
+7 -3
View File
@@ -59,22 +59,26 @@ extern NSString *libraryPath;
- (BOOL)_loadFileDump:(NSURL *)absoluteURL error:(NSError **)outError
{
MP4FileHandle fileHandle = MP4Read(absoluteURL.fileSystemRepresentation);
if (fileHandle == MP4_INVALID_FILE_HANDLE) {
return NO;
}
MP4LogLevel level = (MP4LogLevel)[NSUserDefaults.standardUserDefaults integerForKey:@"LogLevel"];
MP4LogSetLevel(level);
MP4Dump(fileHandle, 0);
MP4Close(fileHandle, 0);
result = [NSString stringWithContentsOfFile:libraryPath encoding:NSASCIIStringEncoding error:outError];
if ([NSFileManager.defaultManager isDeletableFileAtPath:libraryPath]) {
[NSFileManager.defaultManager removeItemAtPath:libraryPath error:nil];
}
if (result) {
return YES;
}
else {
} else {
return NO;
}
}