diff options
Diffstat (limited to 'Framework/MASShortcutBinder.m')
| -rw-r--r-- | Framework/MASShortcutBinder.m | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/Framework/MASShortcutBinder.m b/Framework/MASShortcutBinder.m index 1039f64..bf85c41 100644 --- a/Framework/MASShortcutBinder.m +++ b/Framework/MASShortcutBinder.m @@ -27,6 +27,16 @@      }  } ++ (instancetype) sharedBinder +{ +    static dispatch_once_t once; +    static MASShortcutBinder *sharedInstance; +    dispatch_once(&once, ^{ +        sharedInstance = [[self alloc] init]; +    }); +    return sharedInstance; +} +  #pragma mark Registration  - (void) bindShortcutWithDefaultsKey: (NSString*) defaultsKeyName toAction: (dispatch_block_t) action | 
