X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b030203c5926bd6af8bc310469c911f2143f7e1..d3e0ffbcd01cd6172234f9dc14f870ed6e1125cd:/src/cocoa/NSMenu.mm diff --git a/src/cocoa/NSMenu.mm b/src/cocoa/NSMenu.mm index 60792740f4..c71a2d2e9b 100644 --- a/src/cocoa/NSMenu.mm +++ b/src/cocoa/NSMenu.mm @@ -6,7 +6,7 @@ // Created: 2002/12/09 // RCS-ID: $Id$ // Copyright: (c) 2002 David Elliott -// Licence: wxWindows licence +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -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