diff options
Diffstat (limited to 'Slimber/Cocoa/CocoaAction.h')
-rw-r--r-- | Slimber/Cocoa/CocoaAction.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Slimber/Cocoa/CocoaAction.h b/Slimber/Cocoa/CocoaAction.h new file mode 100644 index 0000000..13be6b9 --- /dev/null +++ b/Slimber/Cocoa/CocoaAction.h @@ -0,0 +1,15 @@ +#pragma once + +#include <Cocoa/Cocoa.h> +#include <boost/function.hpp> + +class CocoaMenulet; + +@interface CocoaAction : NSObject { + boost::function<void ()>* function; +} + +- (id) initWithFunction: (boost::function<void()>*) f; +- (void) doAction: (id) sender; + +@end |