00001 #include <Carbon/Carbon.h> 00002 00003 #include "MakeFromCommand_base.h" 00004 00005 00006 template <class W> 00007 class MakeFromCommand : public MakeFromCommand_base 00008 { 00009 public: 00010 MakeFromCommand( UInt32 cmd, CFStringRef nibName, CFStringRef objectName ); 00011 W* objPtr(){return objPtr_;}; 00012 00013 private: 00014 W *objPtr_; // this is usually a window object 00015 void make(); 00016 void destroy(); 00017 virtual bool handleCommand( UInt32 commandID ); 00018 }; 00019