summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-04 08:39:04 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-04 08:39:04 (GMT)
commit8de45cd97339e94ae0dc120f068248b5795e118b (patch)
tree4bec9f87952e30ab8a6bb0f4aac037630549429c /Slimber
parent83791d091430a0b2fa534c104823f91a7587d64e (diff)
downloadswift-contrib-8de45cd97339e94ae0dc120f068248b5795e118b.zip
swift-contrib-8de45cd97339e94ae0dc120f068248b5795e118b.tar.bz2
CocoaAction: Remove redundant Menulet declaration.
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