]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/menuitem.h
fixed gcc warnings and reformatted some pieces of code to be a bit readable
[wxWidgets.git] / include / wx / menuitem.h
index 8d469a7838421e367fac8314e6b638b430cf3dd9..f7f5cc3c7230c220b8a6070b2525753d73e043c7 100644 (file)
@@ -49,6 +49,7 @@ public:
 
     // the menu we're in
     wxMenu *GetMenu() const { return m_parentMenu; }
+    void SetMenu(wxMenu* menu) { m_parentMenu = menu; }
 
     // get/set id
     void SetId(int itemid) { m_id = itemid; }
@@ -161,6 +162,8 @@ private:
     #include "wx/gtk/menuitem.h"
 #elif defined(__WXMAC__)
     #include "wx/mac/menuitem.h"
+#elif defined(__WXCOCOA__)
+    #include "wx/cocoa/menuitem.h"
 #elif defined(__WXPM__)
     #include "wx/os2/menuitem.h"
 #endif