summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Slimber')
-rw-r--r--Slimber/Cocoa/CocoaAction.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Slimber/Cocoa/CocoaAction.h b/Slimber/Cocoa/CocoaAction.h
index 13be6b9..d02c8b5 100644
--- a/Slimber/Cocoa/CocoaAction.h
+++ b/Slimber/Cocoa/CocoaAction.h
@@ -3,13 +3,18 @@
#include <Cocoa/Cocoa.h>
#include <boost/function.hpp>
-class CocoaMenulet;
-
@interface CocoaAction : NSObject {
boost::function<void ()>* function;
}
+/**
+ * Acquires ownership of 'f'.
+ */
- (id) initWithFunction: (boost::function<void()>*) f;
+
+/**
+ * Calls the functor passed as a parameter to the contsructor.
+ */
- (void) doAction: (id) sender;
@end