From d73fb995487574ddeabd5d0799895b71c40cacf3 Mon Sep 17 00:00:00 2001 From: Dave DeLong Date: Fri, 19 Mar 2010 14:26:49 -0600 Subject: README formatting --- README.markdown | 10 ++++++---- 1 file 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: -- cgit v1.2.3