1 2 3 4 5 6 7 8 9 10 11 12 13 14 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