Rework ArtworkSelectorController to use a NSCollectionView instead of the deprecated IKImageBrowserView on 10.11+

This commit is contained in:
Damiano Galassi committed 2018-06-27 22:49:31 +02:00
1 parent 9f2fc2a9a6
commit 37356b8cc5
12 files changed
+771 -73

No files matched your search

+50 -13
View File
@@ -61,6 +61,10 @@
A984DB4B0F52D644001A20B2 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; };
A984DB530F52D679001A20B2 /* Sparkle.framework in Copy Files */ = {isa = PBXBuildFile; fileRef = A984DB4A0F52D644001A20B2 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
A984DB740F52DD4B001A20B2 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = A984DB730F52DD4B001A20B2 /* dsa_pub.pem */; };
A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */ = {isa = PBXBuildFile; fileRef = A98542D520D197D300EB9803 /* ArtworkSelector.xib */; };
A98542D920D197DF00EB9803 /* ArtworkSelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98542D820D197DF00EB9803 /* ArtworkSelector.swift */; };
A98542DC20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98542DA20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift */; };
A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = A98542DB20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib */; };
A9859ACE1F4B43CC00022828 /* QueuePreset.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9859ACD1F4B43CC00022828 /* QueuePreset.swift */; };
A98D44102036F661005CB092 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D440F2036F661005CB092 /* AppDelegate.swift */; };
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D98451F0280CB00A77ABC /* TheMovieDB.swift */; };
@@ -111,7 +115,6 @@
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */; };
A9DA3B9C1B918D5C00F1E40C /* SBApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DA3B991B918D5C00F1E40C /* SBApplication.m */; };
A9DA3BA31B918D6F00F1E40C /* ExceptionAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9DA3BA11B918D6F00F1E40C /* ExceptionAlert.xib */; };
A9E932A71F34D31D00B1790B /* ArtworkSelector.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */; };
A9E97F141F274F1100DBA586 /* iTunesStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E97F131F274F1100DBA586 /* iTunesStore.swift */; };
A9ECA0532029948900D5F30C /* OffsetViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9ECA0512029948900D5F30C /* OffsetViewController.swift */; };
A9ECA0572029A10B00D5F30C /* DocumentWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9ECA0592029A10B00D5F30C /* DocumentWindowController.xib */; };
@@ -126,7 +129,7 @@
A9F7F8E01837C44B0036AE7E /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9ED7B21180067A2008FD3A8 /* IOKit.framework */; };
A9F8045A1FB6F4FD0069FF43 /* ImageBrowserView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9F804591FB6F4FD0069FF43 /* ImageBrowserView.swift */; };
A9FC6FF61EF2E3280034CCED /* TheTVDBService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9FC6FF51EF2E3280034CCED /* TheTVDBService.swift */; };
CD4E6E5D12F744210095C84F /* ArtworkSelector.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */; };
CD4E6E5D12F744210095C84F /* ArtworkSelectorOld.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */; };
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */; };
CDE8E452174CBBD4009410B5 /* iTunesStores.json in Resources */ = {isa = PBXBuildFile; fileRef = CDE8E451174CBBD4009410B5 /* iTunesStores.json */; };
/* End PBXBuildFile section */
@@ -218,7 +221,7 @@
A924A5111D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Classes/PropertyView/Base.lproj/VideoView.xib; sourceTree = "<group>"; };
A924A5121D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
A924A5141D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MetadataSearch.xib; sourceTree = "<group>"; };
A924A5151D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ArtworkSelector.xib; sourceTree = "<group>"; };
A924A5151D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ArtworkSelectorOld.xib; sourceTree = "<group>"; };
A924A5161D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/SBChapterSearch.xib; sourceTree = "<group>"; };
A924A5171D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Queue.xib; sourceTree = "<group>"; };
A924A5181D4B9E66008301A7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/QueueOptions.xib; sourceTree = "<group>"; };
@@ -267,6 +270,10 @@
A982D0BF140AB66400B92357 /* SBQueueItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueItem.m; path = Classes/SBQueueItem.m; sourceTree = "<group>"; };
A984DB4A0F52D644001A20B2 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
A984DB730F52DD4B001A20B2 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
A98542D620D197D300EB9803 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/ArtworkSelector.xib; sourceTree = "<group>"; };
A98542D820D197DF00EB9803 /* ArtworkSelector.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ArtworkSelector.swift; path = Classes/ArtworkSelector.swift; sourceTree = "<group>"; };
A98542DA20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ArtworkSelectorViewItem.swift; path = Classes/ArtworkSelectorViewItem.swift; sourceTree = "<group>"; };
A98542DB20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ArtworkSelectorViewItem.xib; path = Classes/ArtworkSelectorViewItem.xib; sourceTree = "<group>"; };
A9859ACD1F4B43CC00022828 /* QueuePreset.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = QueuePreset.swift; path = Classes/QueuePreset.swift; sourceTree = "<group>"; };
A98D440F2036F661005CB092 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Classes/AppDelegate.swift; sourceTree = "<group>"; };
A98D98451F0280CB00A77ABC /* TheMovieDB.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TheMovieDB.swift; path = Classes/MetadataImporters/TheMovieDB.swift; sourceTree = "<group>"; };
@@ -302,7 +309,7 @@
A9BA1AD61DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = Classes/PropertyView/it.lproj/VideoView.strings; sourceTree = "<group>"; };
A9BA1AD71DBF773600FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MainMenu.strings; sourceTree = "<group>"; };
A9BA1AD91DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/MetadataSearch.strings; sourceTree = "<group>"; };
A9BA1ADA1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/ArtworkSelector.strings; sourceTree = "<group>"; };
A9BA1ADA1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/ArtworkSelectorOld.strings; sourceTree = "<group>"; };
A9BA1ADD1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/SBChapterSearch.strings; sourceTree = "<group>"; };
A9BA1ADE1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Queue.strings; sourceTree = "<group>"; };
A9BA1ADF1DBF773700FD0B38 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/QueueOptions.strings; sourceTree = "<group>"; };
@@ -330,7 +337,6 @@
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>"; };
A9DA3BA01B918D6200F1E40C /* SBApplication.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SBApplication.h; path = Classes/SBApplication.h; sourceTree = "<group>"; };
A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ArtworkSelector.swift; path = Classes/ArtworkSelector.swift; sourceTree = "<group>"; };
A9E97F131F274F1100DBA586 /* iTunesStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = iTunesStore.swift; path = Classes/MetadataImporters/iTunesStore.swift; sourceTree = "<group>"; };
A9E9E5291FB21B4000BCC49D /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/FileImportController.strings; sourceTree = "<group>"; };
A9ECA0512029948900D5F30C /* OffsetViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = OffsetViewController.swift; path = Classes/OffsetViewController.swift; sourceTree = "<group>"; };
@@ -601,8 +607,11 @@
A9A4A968202F51FA00482D12 /* SaveOptions.xib */,
A962D9ED1F8B7F9F00802EEF /* FileImportController.swift */,
A93105351F9758EC00605146 /* FileImportController.xib */,
A9E932A61F34D31D00B1790B /* ArtworkSelector.swift */,
CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */,
A98542D820D197DF00EB9803 /* ArtworkSelector.swift */,
CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */,
A98542D520D197D300EB9803 /* ArtworkSelector.xib */,
A98542DA20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift */,
A98542DB20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib */,
A997B0A91F348AB000974C9C /* MetadataSearchController.swift */,
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */,
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */,
@@ -708,6 +717,11 @@
8D15AC270486D014006FF6A4 = {
LastSwiftMigration = 1000;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 0;
};
};
};
A95B8DA31B09F37700F2F152 = {
CreatedOnToolsVersion = 6.3.1;
@@ -776,6 +790,7 @@
A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */,
A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */,
A9C31E5D2029A79000CEF474 /* GeneralPrefsViewController.xib in Resources */,
A98542DD20D1A7E500EB9803 /* ArtworkSelectorViewItem.xib in Resources */,
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */,
A9ECA05A2029A10F00D5F30C /* TracksViewController.xib in Resources */,
A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */,
@@ -796,12 +811,13 @@
CD71FEA612F1B62600F0A98D /* MetadataSearch.xib in Resources */,
A90CD5C01FD177230070A067 /* TokensViewController.xib in Resources */,
A9A4A96B202F51FF00482D12 /* ProgressViewController.xib in Resources */,
CD4E6E5D12F744210095C84F /* ArtworkSelector.xib in Resources */,
CD4E6E5D12F744210095C84F /* ArtworkSelectorOld.xib in Resources */,
61CEC0CE1E7569E4000FECC1 /* MultiSelectView.xib in Resources */,
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */,
A9D4B8671C05BD04007845C4 /* SBChapterSearch.xib in Resources */,
A9C31E642029A82200CEF474 /* AdvancedPrefsViewController.xib in Resources */,
A998DABF1BA54CFF004D7969 /* MediaTagsController.xib in Resources */,
A98542D720D197D300EB9803 /* ArtworkSelector.xib in Resources */,
A9ECA0602029A13800D5F30C /* OffsetViewController.xib in Resources */,
A961476713F568210068F161 /* Queue.xib in Resources */,
A9BA1AF31DBF7DD800FD0B38 /* Localizable.strings in Resources */,
@@ -834,6 +850,7 @@
A959001A202AF21800FD8F23 /* ProgressViewController.swift in Sources */,
A91576EB204ECA6E00D93CE7 /* Token.swift in Sources */,
A9676A341FB6EAAD00C1E300 /* ItemViewController.swift in Sources */,
A98542DC20D1A7E500EB9803 /* ArtworkSelectorViewItem.swift in Sources */,
A90C3E0C1FD16AF200F64532 /* TokensViewController.swift in Sources */,
A9AB485617F0AEAC000AA72E /* SBMovieViewController.m in Sources */,
A9C09C7C1F99F460007939EE /* ExceptionAlertController.swift in Sources */,
@@ -841,6 +858,7 @@
A9676A301FB6E85300C1E300 /* LanguageTransformer.swift in Sources */,
A9907E192063DAA000DB992E /* VideoViewController.swift in Sources */,
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */,
A98542D920D197DF00EB9803 /* ArtworkSelector.swift in Sources */,
A99B9A842063AD98000FAE20 /* MovieViewControllerAdditions.swift in Sources */,
A98D98481F02820F00A77ABC /* TheMovieDBService.swift in Sources */,
A962D9EE1F8B7F9F00802EEF /* FileImportController.swift in Sources */,
@@ -870,7 +888,6 @@
A9C09C981F99F971007939EE /* ExpandedTableView.swift in Sources */,
A90240DB2063BD3700E762FA /* MediaTagsController.swift in Sources */,
A997B0AA1F348AB000974C9C /* MetadataSearchController.swift in Sources */,
A9E932A71F34D31D00B1790B /* ArtworkSelector.swift in Sources */,
A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */,
A956CE6B1F99EAAD00093992 /* Logger.swift in Sources */,
A956CE691F99E93D00093992 /* ButtonToolbarItem.swift in Sources */,
@@ -1042,6 +1059,14 @@
name = Queue.xib;
sourceTree = "<group>";
};
A98542D520D197D300EB9803 /* ArtworkSelector.xib */ = {
isa = PBXVariantGroup;
children = (
A98542D620D197D300EB9803 /* Base */,
);
name = ArtworkSelector.xib;
sourceTree = "<group>";
};
A998DABD1BA54CFF004D7969 /* MediaTagsController.xib */ = {
isa = PBXVariantGroup;
children = (
@@ -1234,13 +1259,13 @@
name = QueueOptions.xib;
sourceTree = "<group>";
};
CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */ = {
CD4E6E5B12F744210095C84F /* ArtworkSelectorOld.xib */ = {
isa = PBXVariantGroup;
children = (
A924A5151D4B9E66008301A7 /* Base */,
A9BA1ADA1DBF773700FD0B38 /* it */,
);
name = ArtworkSelector.xib;
name = ArtworkSelectorOld.xib;
sourceTree = "<group>";
};
CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */ = {
@@ -1338,8 +1363,11 @@
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_ENTITLEMENTS = Subler.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEVELOPMENT_TEAM = 5X9DE89KYV;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
@@ -1354,6 +1382,7 @@
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
PRODUCT_NAME = Subler;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -1369,7 +1398,10 @@
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_ENTITLEMENTS = Subler.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 5X9DE89KYV;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
@@ -1383,6 +1415,7 @@
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.galad.${PRODUCT_NAME:identifier}";
PRODUCT_NAME = Subler;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SWIFT_OBJC_BRIDGING_HEADER = "Subler-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -1394,6 +1427,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ANALYZER_GCD_PERFORMANCE = YES;
CLANG_ANALYZER_LOCALIZABILITY = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
@@ -1431,6 +1465,7 @@
GCC_C_LANGUAGE_STANDARD = c11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = "";
GCC_VERSION = "";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
@@ -1463,6 +1498,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_OPTIMIZATION = space;
CLANG_ANALYZER_GCD_PERFORMANCE = YES;
CLANG_ANALYZER_LOCALIZABILITY = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
@@ -1496,6 +1532,7 @@
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = c11;
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;