// Created: 2002/12/09
// RCS-ID: $Id:
// Copyright: (c) 2002 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef __WX_COCOA_MENU_H__
public:
// ctors and dtor
wxMenu(const wxString& title, long style = 0)
- : wxMenuBase(title, style) { Create(title,style); }
+ : wxMenuBase(title, style)
+ , m_cocoaDeletes(false)
+ { Create(title,style); }
bool Create(const wxString& title, long style = 0);
wxMenu(long style = 0) : wxMenuBase(style) { Create(wxEmptyString, style); }
// ------------------------------------------------------------------------
public:
inline WX_NSMenu GetNSMenu() { return m_cocoaNSMenu; }
+ void SetCocoaDeletes(bool cocoaDeletes);
+ virtual void Cocoa_dealloc();
protected:
WX_NSMenu m_cocoaNSMenu;
+ bool m_cocoaDeletes;
// ------------------------------------------------------------------------
// Implementation
// ------------------------------------------------------------------------
public:
// ctors and dtor
wxMenuBar(long style = 0) { Create(style); }
+ wxMenuBar(size_t n, wxMenu *menus[], const wxString titles[], long style = 0);
bool Create(long style = 0);
virtual ~wxMenuBar();