MenuBar in macOS Catalina
-
- In need of some credit
- Posts: 2
- Joined: Sat Sep 21, 2019 11:08 am
MenuBar in macOS Catalina
Dear all,
Am new to this forum and this is my first question
I am starting to work with wxWidgets.
I tried the hello world app and it compiles and launches. Yet, the menubar is irresponsive. I have copied the app to another computer with Mojave (just installed wxmac with brew, which installs the dynamic libraries for 3.0.4_2) and that works. To build I use cmake with wx installed also with brew using the find_package command and linking to the target. The system has clang 10.0.
My feeling is that something has changed in Catalina and needs to be updated.
Best,
Am new to this forum and this is my first question
I am starting to work with wxWidgets.
I tried the hello world app and it compiles and launches. Yet, the menubar is irresponsive. I have copied the app to another computer with Mojave (just installed wxmac with brew, which installs the dynamic libraries for 3.0.4_2) and that works. To build I use cmake with wx installed also with brew using the find_package command and linking to the target. The system has clang 10.0.
My feeling is that something has changed in Catalina and needs to be updated.
Best,
Re: MenuBar in macOS Catalina
Please try again with with "minimal" sample that comes with wxWidgets and the latest wxWidgets version from GIT.
https://github.com/wxWidgets/wxWidgets
If the same happens then, please open a bug report at http://trac.wxwidgets.org
https://github.com/wxWidgets/wxWidgets
If the same happens then, please open a bug report at http://trac.wxwidgets.org
Use the source, Luke!
-
- In need of some credit
- Posts: 2
- Joined: Sat Sep 21, 2019 11:08 am
Re: MenuBar in macOS Catalina
Thanks so much for the quick reply.
I did exactly as indicated and the problem persists.
I'll add it to the issue tracker then.
Regards,
Raúl
I did exactly as indicated and the problem persists.
I'll add it to the issue tracker then.
Regards,
Raúl
Re: MenuBar in macOS Catalina
Hi,
So when you click on the menu in the minimal sample - nothing happens?
And I presume you did build the debug version of the library, right? (you passed "--enable-debug" to configure)
Thank you.
So when you click on the menu in the minimal sample - nothing happens?
And I presume you did build the debug version of the library, right? (you passed "--enable-debug" to configure)
Thank you.
Re: MenuBar in macOS Catalina
I have the same problem since the upgrade to Catalina. Both, with wxWidgets 3.0.4 as well as 3.1.3, also with the included minimal samples (build with the debug version of the library).
Did anyone succeed to find a workaround?
Has a Trac ticket been filed? Could you please link it here? I could not find it.
Thanks.
Did anyone succeed to find a workaround?
Has a Trac ticket been filed? Could you please link it here? I could not find it.
Thanks.
Re: MenuBar in macOS Catalina
Hi,
Did you try with the Git master?
Also, did you modify the minimal sample in any way?
Finally what is you configure line?
Thank you.
Did you try with the Git master?
Also, did you modify the minimal sample in any way?
Finally what is you configure line?
Thank you.
Re: MenuBar in macOS Catalina
Hello Everyone, similarly wondering if anyone is closer to solving this problem?
My environments: wxWidgets 3.1.3 (and 3.1.2), Catalina 10.15.2, clang-1100.0.33.17
Symptoms: All menubar elements (menu titles) are initially inactive, but can be made active by first clicking on another application's window (giving it the focus), and then clicking on my application's main window. Symptoms are observed both for my application(s), and all of the wxWidget samples that I have tried. My application otherwise works as expected, so it just suggests that it's menubar is not being made active on start-up.
My wxWidgets configuration command-line options:
./configure \
--with-osx_cocoa \
--with-macosx-version-min=10.15 \
--disable-shared \
--enable-webview \
--without-libtiff \
--enable-stl \
--prefix=/usr/local/src/wxWidgets-3.1.3/install CC="clang" CXX="clang++" CXXFLAGS="-std=c++11 -stdlib=libc++ -fvisibility-inlines-hidden" OBJCXXFLAGS="-std=c++11 -stdlib=libc++ -fvisibility-inlines-hidden" LDFLAGS="-stdlib=libc++"
Thanks for any help,
My environments: wxWidgets 3.1.3 (and 3.1.2), Catalina 10.15.2, clang-1100.0.33.17
Symptoms: All menubar elements (menu titles) are initially inactive, but can be made active by first clicking on another application's window (giving it the focus), and then clicking on my application's main window. Symptoms are observed both for my application(s), and all of the wxWidget samples that I have tried. My application otherwise works as expected, so it just suggests that it's menubar is not being made active on start-up.
My wxWidgets configuration command-line options:
./configure \
--with-osx_cocoa \
--with-macosx-version-min=10.15 \
--disable-shared \
--enable-webview \
--without-libtiff \
--enable-stl \
--prefix=/usr/local/src/wxWidgets-3.1.3/install CC="clang" CXX="clang++" CXXFLAGS="-std=c++11 -stdlib=libc++ -fvisibility-inlines-hidden" OBJCXXFLAGS="-std=c++11 -stdlib=libc++ -fvisibility-inlines-hidden" LDFLAGS="-stdlib=libc++"
Thanks for any help,
Re: MenuBar in macOS Catalina
Hi,
Does it makes a difference if you set a minimum OSX to be 10.9?
Thank you.
Does it makes a difference if you set a minimum OSX to be 10.9?
Thank you.
Re: MenuBar in macOS Catalina
Hi,
You did the complete and full rebuild, right? Or simply build in the fresh new directory?
Thank you.
You did the complete and full rebuild, right? Or simply build in the fresh new directory?
Thank you.
Re: MenuBar in macOS Catalina
Yes, full rebuild - make clean ; make distclean ; ./configure --and-all-the-above-options
and then recompiled my application, and a few of the sample applications.
I don't believe the problem lies in the building of wxWidgets or its applications; I think it's something new/changed that's necessary during the startup of an application, something that's changed with Catalina.
Re: MenuBar in macOS Catalina
I don't think sdk 10.15 is supported yet with wxWidgets. I wonder if this issue persist even when built against 10.14 and run on Catalina?
Re: MenuBar in macOS Catalina
Hi,
Some things is supported - like a Dark Mode.
But I guess Apple did change something in the SDK that prevents it from working.
You can try and post on the wx-users ML tp let Stefan and others know about the issue, as this is a user forum and wx core developers are very rarely comes here if ever.
Thank you.
Some things is supported - like a Dark Mode.
But I guess Apple did change something in the SDK that prevents it from working.
You can try and post on the wx-users ML tp let Stefan and others know about the issue, as this is a user forum and wx core developers are very rarely comes here if ever.
Thank you.
Re: MenuBar in macOS Catalina
Dark mode was introduced in 10.14 and recently became supported in wx.
The first dev to comment related ticket said he doesn't even have 10.15 yet.
http://trac.wxwidgets.org/ticket/18641
The first dev to comment related ticket said he doesn't even have 10.15 yet.
http://trac.wxwidgets.org/ticket/18641
-
- In need of some credit
- Posts: 1
- Joined: Mon Mar 16, 2020 9:16 am
Re: MenuBar in macOS Catalina
Hello
Yes I have the same problem on Mac Catalina.
When you first run your project, the main menu is not responding, you need to click another window application then click back to your window.
It seems like something changed in Catalina and wxWidgets Library needs to be tested properly on the platform. Catalina has given me other trouble with things not working, some programs need to be reinstalled and other things that use to work, Apple removed like SMB 1 and 2 support, very annoying. Anyway, I hope someone can look into this bug.
Yes I have the same problem on Mac Catalina.
When you first run your project, the main menu is not responding, you need to click another window application then click back to your window.
It seems like something changed in Catalina and wxWidgets Library needs to be tested properly on the platform. Catalina has given me other trouble with things not working, some programs need to be reinstalled and other things that use to work, Apple removed like SMB 1 and 2 support, very annoying. Anyway, I hope someone can look into this bug.