Use UTI in Info.plist

This commit is contained in:
Damiano Galassi committed 2017-03-25 13:50:00 +01:00
1 parent fb53d6273c
commit 6b112586fc
4 files changed
+84 -109

No files matched your search

+39 -28
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="12118" systemVersion="16E192b" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11762"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="12118"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -78,7 +78,7 @@
<rect key="frame" x="1" y="1" width="37" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="MN4-i3-304">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="MN4-i3-304">
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="kPa-fN-d6F">
@@ -96,7 +96,7 @@
<rect key="frame" x="1" y="20" width="37" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3M2-80-rYQ">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3M2-80-rYQ">
<rect key="frame" x="0.0" y="0.0" width="94" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Do not localize" id="DTn-O5-qNK">
@@ -164,7 +164,7 @@
<rect key="frame" x="62" y="1" width="222" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="SHZ-wS-KHp">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="SHZ-wS-KHp">
<rect key="frame" x="0.0" y="0.0" width="222" 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="voc-Ho-i53">
@@ -200,7 +200,7 @@
<rect key="frame" x="287" y="1" width="92" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="206-PB-nxg">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="206-PB-nxg">
<rect key="frame" x="0.0" y="0.0" width="92" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="00:00:00" id="NiT-jo-7tv">
@@ -269,7 +269,7 @@
<rect key="frame" x="543" y="1" width="145" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vEq-Qw-35S">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vEq-Qw-35S">
<rect key="frame" x="0.0" y="0.0" width="145" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="4fX-fC-9jF">
@@ -287,7 +287,7 @@
<rect key="frame" x="543" y="20" width="145" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="zF5-nA-gdc">
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="zF5-nA-gdc">
<rect key="frame" x="0.0" y="0.0" width="145" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Do not localize" id="B0B-3e-m7b">
@@ -550,7 +550,7 @@
<rect key="frame" x="0.0" y="0.0" width="297" height="121"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100177">
<textField verticalHuggingPriority="750" fixedFrame="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100177">
<rect key="frame" x="17" y="84" width="88" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Optimizing…" id="100178">
@@ -590,7 +590,7 @@ Gw
<rect key="frame" x="0.0" y="0.0" width="346" height="102"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100277">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100277">
<rect key="frame" x="307" y="62" width="22" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ms" id="100278">
<font key="font" metaFont="system"/>
@@ -598,7 +598,7 @@ Gw
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100275">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100275">
<rect key="frame" x="69" y="59" width="233" height="22"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="100276">
<font key="font" metaFont="system"/>
@@ -632,7 +632,7 @@ Gw
<action selector="closeOffsetSheet:" target="-2" id="100287"/>
</connections>
</button>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100273">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100273">
<rect key="frame" x="18" y="62" width="46" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Offset:" id="100274">
<font key="font" metaFont="system"/>
@@ -662,27 +662,24 @@ Gw
<rect key="frame" x="0.0" y="0.0" width="320" height="82"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100223">
<rect key="frame" x="29" y="29" width="58" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Options:" id="100224">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="100223">
<rect key="frame" x="8" y="29" width="76" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Options:" id="100224">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100221">
<rect key="frame" x="7" y="54" width="79" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="File Format:" id="100222">
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="250" translatesAutoresizingMaskIntoConstraints="NO" id="100221">
<rect key="frame" x="8" y="54" width="76" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="File Format:" id="100222">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100215">
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="100215">
<rect key="frame" x="88" y="48" width="225" height="26"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" autoenablesItems="NO" selectedItem="100218" id="100216">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="menu"/>
@@ -712,9 +709,8 @@ Gw
</binding>
</connections>
</popUpButton>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100190">
<rect key="frame" x="89" y="8" width="105" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<button translatesAutoresizingMaskIntoConstraints="NO" id="100190">
<rect key="frame" x="88" y="8" width="102" height="18"/>
<string key="toolTip">Note: don't use this option if you are not sure of what it is doing, it's not needed in almost every case.
Enable 64bit timescale and duration support. Normally, it's only needed if a track will be longer than 10 hours.</string>
<buttonCell key="cell" type="check" title="64 bits times" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="100191">
@@ -725,9 +721,8 @@ Enable 64bit timescale and duration support. Normally, it's only needed if a tra
<binding destination="100263" name="value" keyPath="values.mp464bitTimes" id="100266"/>
</connections>
</button>
<button toolTip="Needed for mp4 larger than 4GB." fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="100188">
<rect key="frame" x="89" y="28" width="149" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<button toolTip="Needed for mp4 larger than 4GB." translatesAutoresizingMaskIntoConstraints="NO" id="100188">
<rect key="frame" x="88" y="28" width="144" height="18"/>
<buttonCell key="cell" type="check" title="64 bits chunk offset" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="100189">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -737,6 +732,22 @@ Enable 64bit timescale and duration support. Normally, it's only needed if a tra
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="100223" firstAttribute="top" secondItem="100221" secondAttribute="bottom" constant="8" id="1z2-hb-G9o"/>
<constraint firstAttribute="bottom" secondItem="100190" secondAttribute="bottom" constant="10" id="C2J-In-ZOs"/>
<constraint firstItem="100215" firstAttribute="leading" secondItem="100221" secondAttribute="trailing" constant="8" symbolic="YES" id="EY7-ee-NKd"/>
<constraint firstItem="100221" firstAttribute="leading" secondItem="100187" secondAttribute="leading" constant="10" id="Gcm-uM-dEu"/>
<constraint firstItem="100188" firstAttribute="baseline" secondItem="100223" secondAttribute="baseline" id="W3i-6N-fzc"/>
<constraint firstItem="100221" firstAttribute="top" secondItem="100187" secondAttribute="top" constant="11" id="W8Z-D3-oZH"/>
<constraint firstItem="100190" firstAttribute="top" secondItem="100188" secondAttribute="bottom" constant="6" id="XM7-Xc-98Y"/>
<constraint firstItem="100215" firstAttribute="baseline" secondItem="100221" secondAttribute="baseline" id="YtU-ce-ots"/>
<constraint firstItem="100223" firstAttribute="trailing" secondItem="100221" secondAttribute="trailing" id="ble-rf-5sO"/>
<constraint firstItem="100188" firstAttribute="leading" secondItem="100223" secondAttribute="trailing" constant="8" symbolic="YES" id="eW1-2L-pww"/>
<constraint firstItem="100190" firstAttribute="leading" secondItem="100188" secondAttribute="leading" id="hSd-gT-lZY"/>
<constraint firstItem="100223" firstAttribute="width" secondItem="100221" secondAttribute="width" id="i3a-54-8hq"/>
<constraint firstAttribute="trailing" secondItem="100215" secondAttribute="trailing" constant="10" id="lgy-LM-55n"/>
</constraints>
<point key="canvasLocation" x="-195" y="189"/>
</customView>
<userDefaultsController representsSharedInstance="YES" id="100263"/>
</objects>
+7 -2
View File
@@ -375,7 +375,12 @@ static NSDictionary *_detailMonospacedAttr;
[fileFormat removeAllItems];
for (NSString *format in formats) {
[fileFormat addItemWithTitle:format];
NSString *formatName = (__bridge NSString *)UTTypeCopyDescription((__bridge CFStringRef _Nonnull)(format));
if (formatName == nil) {
formatName = format;
}
[fileFormat addItemWithTitle:formatName];
}
[fileFormat selectItemAtIndex:[[[NSUserDefaults standardUserDefaults] valueForKey:@"defaultSaveFormat"] integerValue]];
@@ -419,7 +424,7 @@ static NSDictionary *_detailMonospacedAttr;
requiredFileType = MP42FileTypeM4A;
break;
case 3:
requiredFileType = MP42FileTypeM4A;
requiredFileType = MP42FileTypeM4B;
break;
case 4:
requiredFileType = MP42FileTypeM4R;
+35 -76
View File
@@ -7,107 +7,74 @@
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>m4v</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>video/x-m4v</string>
</array>
<key>CFBundleTypeName</key>
<string>Video-MPEG4</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>M4V</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.apple.protected-mpeg-4-video</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSDocumentClass</key>
<string>SBDocument</string>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>mp4</string>
<string>mpg4</string>
<string>mqv</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>audio/mp4</string>
<string>video/mp4</string>
</array>
<key>CFBundleTypeName</key>
<string>Movie-MPEG4</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>mpg4</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.mpeg-4</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSDocumentClass</key>
<string>SBDocument</string>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>m4a</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>audio/x-m4a</string>
<string>audio/x-m4v</string>
</array>
<key>CFBundleTypeName</key>
<string>Audio-MPEG4</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>M4A</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.mpeg-4-audio</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSDocumentClass</key>
<string>SBDocument</string>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>Audiobook</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.apple.protected-mpeg-4-audio</string>
</array>
<key>NSDocumentClass</key>
<string>SBDocument</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>m4b</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>audio/x-m4b</string>
<string>audio/x-m4v</string>
</array>
<array/>
<key>CFBundleTypeName</key>
<string>Audiobook-MPEG4</string>
<string>Ringtone</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.apple.mpeg-4-ringtone</string>
</array>
<key>NSDocumentClass</key>
<string>SBDocument</string>
</dict>
@@ -122,6 +89,8 @@
<string>Matroska video</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>NSDocumentClass</key>
<string>SBDocument</string>
</dict>
@@ -134,18 +103,8 @@
<string>QuickTime Movie</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>NSDocumentClass</key>
<string>SBDocument</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>m4r</string>
</array>
<key>CFBundleTypeName</key>
<string>Ringtone</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>NSDocumentClass</key>
<string>SBDocument</string>
</dict>
@@ -153,7 +112,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key>
<string>1.2.7, Copyright 2017 Damiano Galassi</string>
<string>1.2.8, Copyright 2017 Damiano Galassi</string>
<key>CFBundleIconFile</key>
<string>Subler.icns</string>
<key>CFBundleIdentifier</key>
@@ -165,11 +124,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.7</string>
<string>1.2.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.7</string>
<string>1.2.8</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.video</string>
<key>NSAppTransportSecurity</key>
+3 -3
View File
@@ -5,12 +5,12 @@
<suite name="Subler Suite" code="sktc" description="Classes just for the Subler application.">
<enumeration name="saveable file format" code="savf">
<enumerator name="Movie-MPEG4" code="MP4 " description="MPEG-4">
<cocoa string-value="public.mpeg-4"/>
</enumerator>
<enumerator name="Video-MPEG4" code="M4V " description="Video-MPEG4">
<cocoa string-value="com.apple.protected-mpeg-4-video"/>
</enumerator>
<enumerator name="Movie-MPEG4" code="MP4 " description="MPEG-4">
<cocoa string-value="public.mpeg-4"/>
</enumerator>
<enumerator name="Audio-MPEG4" code="M4A " description="Audio-MPEG4">
<cocoa string-value="public.mpeg-4-audio"/>
</enumerator>