using native cocoa method for determining main window, fixes #14287
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -225,8 +225,10 @@ void wxFrame::AttachMenuBar( wxMenuBar *menuBar )
|
|||||||
{
|
{
|
||||||
#if wxOSX_USE_CARBON
|
#if wxOSX_USE_CARBON
|
||||||
wxFrame* tlf = wxDynamicCast( wxNonOwnedWindow::GetFromWXWindow( (WXWindow) FrontNonFloatingWindow() ) , wxFrame );
|
wxFrame* tlf = wxDynamicCast( wxNonOwnedWindow::GetFromWXWindow( (WXWindow) FrontNonFloatingWindow() ) , wxFrame );
|
||||||
|
#elif wxOSX_USE_COCOA
|
||||||
|
wxFrame* tlf = wxDynamicCast( wxNonOwnedWindow::GetFromWXWindow( wxOSXGetMainWindow() ) , wxFrame );
|
||||||
#else
|
#else
|
||||||
wxFrame* tlf = (wxFrame*) wxTheApp->GetTopWindow();
|
wxFrame* tlf = wxDynamicCast( wxTheApp->GetTopWindow(), wxFrame );
|
||||||
#endif
|
#endif
|
||||||
bool makeCurrent = false;
|
bool makeCurrent = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user