virtual void CocoaDelegate_windowDidResignKey(void) { }
virtual void CocoaDelegate_windowDidBecomeMain(void) { }
virtual void CocoaDelegate_windowDidResignMain(void) { }
- virtual wxMenuBar* GetAppMenuBar();
+ virtual wxMenuBar* GetAppMenuBar(wxCocoaNSWindow *win);
protected:
static struct objc_object *sm_cocoaDelegate;
};
// Cocoa specifics
// ------------------------------------------------------------------------
public:
- virtual wxMenuBar* GetAppMenuBar();
+ virtual wxMenuBar* GetAppMenuBar(wxCocoaNSWindow *win);
// Returns the NSView for non-client drawing
virtual WX_NSView GetNonClientNSView();
protected:
virtual void CocoaDelegate_windowDidResignKey(void);
virtual void CocoaDelegate_windowDidBecomeMain(void);
virtual void CocoaDelegate_windowDidResignMain(void);
- virtual wxMenuBar* GetAppMenuBar();
+ virtual wxMenuBar* GetAppMenuBar(wxCocoaNSWindow *win);
protected:
void SetNSWindow(WX_NSWindow cocoaNSWindow);
WX_NSWindow m_cocoaNSWindow;
}
}
-wxMenuBar* wxCocoaNSWindow::GetAppMenuBar()
+wxMenuBar* wxCocoaNSWindow::GetAppMenuBar(wxCocoaNSWindow *win)
{
return NULL;
}
wxMenuBarManager::GetInstance()->UpdateWindowMenuBar(this);
}
-wxMenuBar* wxFrame::GetAppMenuBar()
+wxMenuBar* wxFrame::GetAppMenuBar(wxCocoaNSWindow *win)
{
if(GetMenuBar())
return GetMenuBar();
- return wxFrameBase::GetAppMenuBar();
+ return wxFrameBase::GetAppMenuBar(win);
}
wxPoint wxFrame::GetClientAreaOrigin() const
{
wxASSERT(win);
m_windowCurrent = win;
- wxMenuBar *menubar = win->GetAppMenuBar();
+ wxMenuBar *menubar = win->GetAppMenuBar(win);
wxLogDebug("Found menubar=%p for window=%p.",menubar,win);
SetMenuBar(menubar);
}
// wxTopLevelWindowCocoa Cocoa Specifics
// ----------------------------------------------------------------------------
-wxMenuBar* wxTopLevelWindowCocoa::GetAppMenuBar()
+wxMenuBar* wxTopLevelWindowCocoa::GetAppMenuBar(wxCocoaNSWindow *win)
{
wxTopLevelWindowCocoa *parent = wxDynamicCast(GetParent(),wxTopLevelWindow);
if(parent)
- return parent->GetAppMenuBar();
+ return parent->GetAppMenuBar(win);
return NULL;
}