git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23389
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/autorelease.h"
+#include "wx/cocoa/mbarman.h"
#if wxUSE_WX_RESOURCES
# include "wx/resource.h"
#if wxUSE_WX_RESOURCES
# include "wx/resource.h"
- (void)doIdle: (id)data
{
wxASSERT(wxTheApp);
- (void)doIdle: (id)data
{
wxASSERT(wxTheApp);
+ wxASSERT(wxMenuBarManager::GetInstance());
+ wxMenuBarManager::GetInstance()->CocoaInternalIdle();
wxLogDebug("doIdle called");
#ifdef __WXDEBUG__
if(wxTheApp->IsInAssert())
wxLogDebug("doIdle called");
#ifdef __WXDEBUG__
if(wxTheApp->IsInAssert())
void wxApp::CleanUp()
{
wxDC::CocoaShutdownTextSystem();
void wxApp::CleanUp()
{
wxDC::CocoaShutdownTextSystem();
+ wxMenuBarManager::DestroyInstance();
// Create the app using the sharedApplication method
m_cocoaApp = [NSApplication sharedApplication];
// Create the app using the sharedApplication method
m_cocoaApp = [NSApplication sharedApplication];
+
+ wxMenuBarManager::CreateInstance();
+
wxDC::CocoaInitializeTextSystem();
// [ m_cocoaApp setDelegate:m_cocoaApp ];
#if 0
wxDC::CocoaInitializeTextSystem();
// [ m_cocoaApp setDelegate:m_cocoaApp ];
#if 0