Use one wxNSWindowDelegate instance per wxCocoaNSWindow instance

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-02-19 06:32:34 +00:00
parent dbd22c6a0e
commit c6f73d05cc
2 changed files with 45 additions and 3 deletions

View File

@@ -19,6 +19,8 @@ WX_DECLARE_OBJC_HASHMAP(NSWindow);
class WXDLLEXPORT wxMenuBar;
DECLARE_WXCOCOA_OBJC_CLASS(wxNSWindowDelegate);
class wxCocoaNSWindow
{
/* NSWindow is a rather special case and requires some extra attention */
@@ -36,7 +38,9 @@ public:
virtual void CocoaDelegate_windowDidResignMain(void) { }
virtual wxMenuBar* GetAppMenuBar(wxCocoaNSWindow *win);
protected:
static struct objc_object *sm_cocoaDelegate;
wxCocoaNSWindow();
virtual ~wxCocoaNSWindow();
WX_wxNSWindowDelegate m_cocoaDelegate;
};
#endif // _WX_COCOA_NSWINDOW_H_