mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
changed API for plugin repository
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
@interface MPPluginRepository : NSObject
|
@interface MPPluginRepository : NSObject
|
||||||
|
|
||||||
@property (class, strong, readonly) MPPluginRepository *sharedRespoitory;
|
@property (class, strong, readonly) MPPluginRepository *defaultRepository;
|
||||||
@property (nonatomic, copy) NSArray<MPPluginRepositoryItem *> *availablePlugins;
|
@property (nonatomic, copy) NSArray<MPPluginRepositoryItem *> *availablePlugins;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
@dynamic availablePlugins;
|
@dynamic availablePlugins;
|
||||||
|
|
||||||
+ (instancetype)sharedRespoitory {
|
+ (instancetype)defaultRepository {
|
||||||
static MPPluginRepository *instance;
|
static MPPluginRepository *instance;
|
||||||
static dispatch_once_t onceToken;
|
static dispatch_once_t onceToken;
|
||||||
dispatch_once(&onceToken, ^{
|
dispatch_once(&onceToken, ^{
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ typedef NS_ENUM(NSUInteger, MPPluginSegmentType) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSImage *)image {
|
- (NSImage *)image {
|
||||||
return [[NSWorkspace sharedWorkspace] iconForFileType:@"bundle"];
|
return [NSWorkspace.sharedWorkspace iconForFileType:@"bundle"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString *)label {
|
- (NSString *)label {
|
||||||
|
|||||||
Reference in New Issue
Block a user