]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/menu.h
added wx/msw/wince/libraries.h to workaround SDK differences problems
[wxWidgets.git] / include / wx / cocoa / menu.h
index 814599dea01d756fc515ff963fe17dbda8d6a090..819a36ddf93b00c1214f13896141e98c88c4a4bc 100644 (file)
@@ -34,11 +34,21 @@ public:
 
     virtual ~wxMenu();
 
+// ------------------------------------------------------------------------
+// Cocoa specifics
+// ------------------------------------------------------------------------
+public:
+    inline WX_NSMenu GetNSMenu() { return m_cocoaNSMenu; }
+protected:
+    WX_NSMenu m_cocoaNSMenu;
+// ------------------------------------------------------------------------
+// Implementation
+// ------------------------------------------------------------------------
 protected:
     // implement base class virtuals
-    virtual bool DoAppend(wxMenuItem *item);
-    virtual bool DoInsert(size_t pos, wxMenuItem *item);
-    virtual wxMenuItem *DoRemove(wxMenuItem *item);
+    virtual wxMenuItem* DoAppend(wxMenuItem *item);
+    virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item);
+    virtual wxMenuItemDoRemove(wxMenuItem *item);
 
 #if wxUSE_ACCEL
     // add/remove accel for the given menu item
@@ -66,8 +76,17 @@ public:
     bool Create(long style = 0);
     virtual ~wxMenuBar();
 
-    wxMenuItemList m_items;             // the list of menu items
-
+// ------------------------------------------------------------------------
+// Cocoa specifics
+// ------------------------------------------------------------------------
+public:
+    inline WX_NSMenu GetNSMenu() { return m_cocoaNSMenu; }
+protected:
+    WX_NSMenu m_cocoaNSMenu;
+// ------------------------------------------------------------------------
+// Implementation
+// ------------------------------------------------------------------------
+public:
     // implement base class virtuals
     virtual bool Append(wxMenu *menu, const wxString &title);
     virtual bool Insert(size_t pos, wxMenu *menu, const wxString& title);