Refactor the artworks urls code so we don't have to update three different arrays each time.

This commit is contained in:
Damiano Galassi committed 2017-05-27 19:01:04 +02:00
1 parent daa7fc3604
commit 0d3b0ea3ec
12 files changed
+155 -120

No files matched your search

+3 -1
View File
@@ -10,6 +10,8 @@
NS_ASSUME_NONNULL_BEGIN
@class SBRemoteImage;
@protocol SBArtworkSelectorDelegate <NSObject>
- (void)selectArtworkDone:(NSIndexSet *)indexes;
@end
@@ -17,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface SBArtworkSelector : NSWindowController
#pragma mark Initialization
- (instancetype)initWithDelegate:(id <SBArtworkSelectorDelegate>)del imageURLs:(NSArray<NSURL *> *)imageURLs artworkProviderNames:(NSArray<NSString *> *)artworkProviderNames;
- (instancetype)initWithDelegate:(id <SBArtworkSelectorDelegate>)del imageURLs:(NSArray<SBRemoteImage *> *)imageURLs;
#pragma mark Load images
- (IBAction) loadMoreArtwork:(id)sender;