aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASShortcutMonitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/MASShortcutMonitor.h')
-rw-r--r--Framework/MASShortcutMonitor.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Framework/MASShortcutMonitor.h b/Framework/MASShortcutMonitor.h
index 69affc1..dc3d458 100644
--- a/Framework/MASShortcutMonitor.h
+++ b/Framework/MASShortcutMonitor.h
@@ -1,11 +1,11 @@
#import "MASShortcut.h"
/**
- Executes action when a shortcut is pressed.
+ Executes action when a shortcut is pressed.
- There can only be one instance of this class, otherwise things
- will probably not work. (There’s a Carbon event handler inside
- and there can only be one Carbon event handler of a given type.)
+ There can only be one instance of this class, otherwise things
+ will probably not work. (There’s a Carbon event handler inside
+ and there can only be one Carbon event handler of a given type.)
*/
@interface MASShortcutMonitor : NSObject
@@ -13,12 +13,12 @@
+ (instancetype) sharedMonitor;
/**
- Register a shortcut along with an action.
+ Register a shortcut along with an action.
- Attempting to insert an already registered shortcut probably won’t work.
- It may burn your house or cut your fingers. You have been warned.
+ Attempting to insert an already registered shortcut probably won’t work.
+ It may burn your house or cut your fingers. You have been warned.
*/
-- (void) registerShortcut: (MASShortcut*) shortcut withAction: (dispatch_block_t) action;
+- (BOOL) registerShortcut: (MASShortcut*) shortcut withAction: (dispatch_block_t) action;
- (BOOL) isShortcutRegistered: (MASShortcut*) shortcut;
- (void) unregisterShortcut: (MASShortcut*) shortcut;