Removed old Code. Added simple plugin system

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-11-12 12:43:04 +01:00
parent a21e027998
commit e8ab0602e1
23 changed files with 426 additions and 185 deletions

View File

@@ -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;