]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/menuitem.h
Added DetachOldLog to avoid destruction of old log target
[wxWidgets.git] / include / wx / cocoa / menuitem.h
index 75e66b1d4cd768dbe93e2a2ddf7279ba0e0635fb..d5ba585ac620a5422cd0fbf56d39c52d402ddaf9 100644 (file)
@@ -15,6 +15,8 @@
 #include "wx/hashmap.h"
 #include "wx/bitmap.h"
 
+#include "wx/cocoa/ObjcRef.h"
+
 // ========================================================================
 // wxMenuItem
 // ========================================================================
@@ -49,10 +51,13 @@ public:
             return iter->second;
         return NULL;
     }
+    void CocoaItemSelected();
+    bool Cocoa_validateMenuItem();
 protected:
+    void CocoaSetKeyEquivalent();
     WX_NSMenuItem m_cocoaNSMenuItem;
     static wxMenuItemCocoaHash sm_cocoaHash;
-    static struct objc_object *sm_cocoaTarget;
+    static wxObjcAutoRefFromAlloc<struct objc_object *> sm_cocoaTarget;
 // ------------------------------------------------------------------------
 // Implementation
 // ------------------------------------------------------------------------