diff --git a/Base.lproj/SBDocument.xib b/Base.lproj/SBDocument.xib index 8766fa6..215fd58 100755 --- a/Base.lproj/SBDocument.xib +++ b/Base.lproj/SBDocument.xib @@ -1,8 +1,8 @@ - + - + @@ -78,7 +78,7 @@ - + @@ -96,7 +96,7 @@ - + @@ -164,7 +164,7 @@ - + @@ -200,7 +200,7 @@ - + @@ -269,7 +269,7 @@ - + @@ -287,7 +287,7 @@ - + @@ -550,7 +550,7 @@ - + @@ -590,7 +590,7 @@ Gw - + @@ -598,7 +598,7 @@ Gw - + @@ -632,7 +632,7 @@ Gw - + @@ -662,27 +662,24 @@ Gw - - - - + + + - - - - + + + - + - @@ -712,9 +709,8 @@ Gw - - + + + + + + + + + + + + + + + + diff --git a/Classes/SBDocument.m b/Classes/SBDocument.m index 7ced2f7..3e54a92 100644 --- a/Classes/SBDocument.m +++ b/Classes/SBDocument.m @@ -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; diff --git a/Info.plist b/Info.plist index 5f409a7..917c6dc 100644 --- a/Info.plist +++ b/Info.plist @@ -7,107 +7,74 @@ CFBundleDocumentTypes - CFBundleTypeExtensions - - m4v - - CFBundleTypeMIMETypes - - video/x-m4v - CFBundleTypeName Video-MPEG4 - CFBundleTypeOSTypes - - M4V - CFBundleTypeRole Editor + LSHandlerRank + Alternate LSItemContentTypes com.apple.protected-mpeg-4-video - LSTypeIsPackage - NSDocumentClass SBDocument - NSPersistentStoreTypeKey - Binary - CFBundleTypeExtensions - - mp4 - mpg4 - mqv - - CFBundleTypeMIMETypes - - audio/mp4 - video/mp4 - CFBundleTypeName Movie-MPEG4 - CFBundleTypeOSTypes - - mpg4 - CFBundleTypeRole Editor + LSHandlerRank + Alternate LSItemContentTypes public.mpeg-4 - LSTypeIsPackage - NSDocumentClass SBDocument - NSPersistentStoreTypeKey - Binary - CFBundleTypeExtensions - - m4a - - CFBundleTypeMIMETypes - - audio/x-m4a - audio/x-m4v - CFBundleTypeName Audio-MPEG4 - CFBundleTypeOSTypes - - M4A - CFBundleTypeRole Editor + LSHandlerRank + Alternate LSItemContentTypes public.mpeg-4-audio - LSTypeIsPackage - NSDocumentClass SBDocument - NSPersistentStoreTypeKey - Binary + + + CFBundleTypeName + Audiobook + CFBundleTypeRole + Editor + LSHandlerRank + Alternate + LSItemContentTypes + + com.apple.protected-mpeg-4-audio + + NSDocumentClass + SBDocument CFBundleTypeExtensions - - m4b - - CFBundleTypeMIMETypes - - audio/x-m4b - audio/x-m4v - + CFBundleTypeName - Audiobook-MPEG4 + Ringtone CFBundleTypeRole Editor + LSHandlerRank + Alternate + LSItemContentTypes + + com.apple.mpeg-4-ringtone + NSDocumentClass SBDocument @@ -122,6 +89,8 @@ Matroska video CFBundleTypeRole Viewer + LSHandlerRank + Alternate NSDocumentClass SBDocument @@ -134,18 +103,8 @@ QuickTime Movie CFBundleTypeRole Viewer - NSDocumentClass - SBDocument - - - CFBundleTypeExtensions - - m4r - - CFBundleTypeName - Ringtone - CFBundleTypeRole - Editor + LSHandlerRank + Alternate NSDocumentClass SBDocument @@ -153,7 +112,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleGetInfoString - 1.2.7, Copyright 2017 Damiano Galassi + 1.2.8, Copyright 2017 Damiano Galassi CFBundleIconFile Subler.icns CFBundleIdentifier @@ -165,11 +124,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.2.7 + 1.2.8 CFBundleSignature ???? CFBundleVersion - 1.2.7 + 1.2.8 LSApplicationCategoryType public.app-category.video NSAppTransportSecurity diff --git a/Queue.sdef b/Queue.sdef index 262e5b5..1dc85f6 100644 --- a/Queue.sdef +++ b/Queue.sdef @@ -5,12 +5,12 @@ - - - + + +