#include "wx/cocoa/ObjcPose.h"
#include "wx/cocoa/autorelease.h"
+#include "wx/cocoa/mbarman.h"
#if wxUSE_WX_RESOURCES
# include "wx/resource.h"
- (void)doIdle: (id)data
{
wxASSERT(wxTheApp);
+ wxASSERT(wxMenuBarManager::GetInstance());
+ wxMenuBarManager::GetInstance()->CocoaInternalIdle();
wxLogDebug("doIdle called");
#ifdef __WXDEBUG__
if(wxTheApp->IsInAssert())
void wxApp::CleanUp()
{
wxDC::CocoaShutdownTextSystem();
+ wxMenuBarManager::DestroyInstance();
wxAppBase::CleanUp();
}
// Create the app using the sharedApplication method
m_cocoaApp = [NSApplication sharedApplication];
+
+ wxMenuBarManager::CreateInstance();
+
wxDC::CocoaInitializeTextSystem();
// [ m_cocoaApp setDelegate:m_cocoaApp ];
#if 0