X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/065e208ec09e3d08d51d9604497f92f53c210f93..09ff2ee1632c8c484134da2a31d0d5c4d0a4bef4:/src/cocoa/NSMenu.mm diff --git a/src/cocoa/NSMenu.mm b/src/cocoa/NSMenu.mm index 43108ad7d6..c71a2d2e9b 100644 --- a/src/cocoa/NSMenu.mm +++ b/src/cocoa/NSMenu.mm @@ -16,12 +16,11 @@ #endif // WX_PRECOMP #include "wx/cocoa/NSMenu.h" -//#include "wx/cocoa/ObjcPose.h" +#include "wx/cocoa/ObjcPose.h" #import #import -#if 0 // There is no reason to pose for NSMenu at this time. // ============================================================================ // @class wxPoserNSMenu // ============================================================================ @@ -29,13 +28,21 @@ { } +- (void)dealloc; + @end // wxPoserNSMenu WX_IMPLEMENT_POSER(wxPoserNSMenu); @implementation wxPoserNSMenu : NSMenu +- (void)dealloc +{ + wxCocoaNSMenu *menu = wxCocoaNSMenu::GetFromCocoa(self); + if(menu) + menu->Cocoa_dealloc(); +} + @end // wxPoserNSMenu -#endif // 0 // ============================================================================ // @class wxNSMenuNotificationObserver