mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 11:29:31 +00:00
Removed old Code. Added simple plugin system
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
@@ -43,7 +43,23 @@ NSString *const kMPProcessIdentifierKey = @"kMPProcessIdentifierKey";
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Lifecylce
|
||||
|
||||
static MPAutotypeDaemon *_sharedInstance;
|
||||
|
||||
+ (instancetype)defaultDaemon {
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
_sharedInstance = [[MPAutotypeDaemon alloc] _init];
|
||||
});
|
||||
return _sharedInstance;
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (instancetype)_init {
|
||||
NSAssert(_sharedInstance == nil, @"Multiple initializations not allowed on singleton");
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_enabled = NO;
|
||||
|
||||
Reference in New Issue
Block a user