summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave DeLong2010-03-19 14:26:49 -0600
committerDave DeLong2010-03-19 14:26:49 -0600
commitd73fb995487574ddeabd5d0799895b71c40cacf3 (patch)
tree3643eb14f4054f6b7e803f5d05587bbb7bc89954
parent4cc970c6913da06b4b455c58fada2d8cfe386478 (diff)
downloadDDHotKey-d73fb995487574ddeabd5d0799895b71c40cacf3.tar.bz2
README formatting
-rw-r--r--README.markdown10
1 files changed, 6 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown
index 791d982..ab3543a 100644
--- a/README.markdown
+++ b/README.markdown
@@ -35,11 +35,13 @@ information regarding the hotkey event (such as the location, the keyCode, the m
Hotkey actions must have one of two method signatures (the actual selector is irrelevant):
-`//a method with a single NSEvent parameter`
-`- (void) hotkeyAction:(NSEvent*)hotKeyEvent;`
+ //a method with a single NSEvent parameter
+ - (void) hotkeyAction:(NSEvent*)hotKeyEvent;
+
OR
-`//a method with an NSEvent parameter and an object parameter`
-`- (void) hotkeyAction:(NSEvent*)hotKeyEvent withObject:(id)anObject;`
+
+ //a method with an NSEvent parameter and an object parameter
+ - (void) hotkeyAction:(NSEvent*)hotKeyEvent withObject:(id)anObject;
The other way to register a hotkey is with a block callback. The block must have the following
signature: