From 8f564da37891b67325f86b6b0ec80150056d3d52 Mon Sep 17 00:00:00 2001 From: Dave DeLong Date: Fri, 19 Mar 2010 14:31:40 -0600 Subject: Minor API clarification (target and object memory management) --- README.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index ab3543a..c0c90eb 100644 --- a/README.markdown +++ b/README.markdown @@ -30,8 +30,9 @@ alloc/init and release a `DDHotKeyCenter` object at anytime; it is merely an acc You can register a hotkey in one of two ways: via a target/action mechanism, or with a block. The target/action mechanism can take a single extra "object" parameter, which it will pass into the -action when the hotkey is fired. In addition, an `NSEvent` object is passed, which contains -information regarding the hotkey event (such as the location, the keyCode, the modifierFlags, etc). +action when the hotkey is fired. Both the `target` and the `object` parameters are retained by the +`DDHotKeyCenter`. In addition, an `NSEvent` object is passed, which contains information regarding +the hotkey event (such as the location, the keyCode, the modifierFlags, etc). Hotkey actions must have one of two method signatures (the actual selector is irrelevant): -- cgit v1.2.3