changed API for plugin repository

This commit is contained in:
Michael Starke
2018-05-15 15:02:00 +02:00
parent 98cfdadcfe
commit 0c702ec351
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
@interface MPPluginRepository : NSObject
@property (class, strong, readonly) MPPluginRepository *sharedRespoitory;
@property (class, strong, readonly) MPPluginRepository *defaultRepository;
@property (nonatomic, copy) NSArray<MPPluginRepositoryItem *> *availablePlugins;

View File

@@ -14,7 +14,7 @@
@dynamic availablePlugins;
+ (instancetype)sharedRespoitory {
+ (instancetype)defaultRepository {
static MPPluginRepository *instance;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{

View File

@@ -61,7 +61,7 @@ typedef NS_ENUM(NSUInteger, MPPluginSegmentType) {
}
- (NSImage *)image {
return [[NSWorkspace sharedWorkspace] iconForFileType:@"bundle"];
return [NSWorkspace.sharedWorkspace iconForFileType:@"bundle"];
}
- (NSString *)label {