#include "wx/cocoa/NSMenu.h"
#include "wx/cocoa/ObjcPose.h"
+#include "wx/cocoa/autorelease.h"
#import <Foundation/NSString.h>
#import <AppKit/NSMenu.h>
// ============================================================================
bool wxCocoaNSMenu::CocoaCreate(const wxString &title)
{
+ wxAutoNSAutoreleasePool pool;
wxLogDebug("CocoaCreate: "+title);
m_cocoaNSMenu = [[NSMenu alloc] initWithTitle: [NSString stringWithCString: title.c_str()]];
return true;