void wxFrame::AttachMenuBar(wxMenuBar *mbar)
{
wxFrameBase::AttachMenuBar(mbar);
- wxMenuBarManager::GetInstance()->UpdateWindowMenuBar(this);
+ wxMenuBarManager::GetInstance()->UpdateMenuBar();
}
void wxFrame::DetachMenuBar()
{
wxFrameBase::DetachMenuBar();
- wxMenuBarManager::GetInstance()->UpdateWindowMenuBar(this);
+ wxMenuBarManager::GetInstance()->UpdateMenuBar();
}
void wxFrame::SetMenuBar(wxMenuBar *menubar)
wxFrameBase::DetachMenuBar();
wxFrameBase::AttachMenuBar(menubar);
- wxMenuBarManager::GetInstance()->UpdateWindowMenuBar(this);
+ wxMenuBarManager::GetInstance()->UpdateMenuBar();
+}
+
+wxMenuBar* wxFrame::GetAppMenuBar(wxCocoaNSWindow *win)
+{
+ if(GetMenuBar())
+ return GetMenuBar();
+ return wxFrameBase::GetAppMenuBar(win);
}
wxPoint wxFrame::GetClientAreaOrigin() const
wxTopLevelWindow::CocoaSetWxWindowSize(width,height);
}
+WX_NSView wxFrame::GetNonClientNSView()
+{
+ if(m_frameNSView)
+ return m_frameNSView;
+ return GetNSViewForSuperview();
+}
+
void wxFrame::CocoaReplaceView(WX_NSView oldView, WX_NSView newView)
{
// If we have the additional toolbar/statbar view, then the