Page 1 of 2

MenuBar in macOS Catalina

Posted: Sat Sep 21, 2019 11:12 am
by raulcatena
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,

Re: MenuBar in macOS Catalina

Posted: Sat Sep 21, 2019 11:30 am
by doublemax
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

Re: MenuBar in macOS Catalina

Posted: Sat Sep 21, 2019 7:17 pm
by raulcatena
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

Re: MenuBar in macOS Catalina

Posted: Mon Sep 23, 2019 2:28 pm
by ONEEYEMAN
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.

Re: MenuBar in macOS Catalina

Posted: Sun Dec 08, 2019 11:57 am
by armin.sch
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.

Re: MenuBar in macOS Catalina

Posted: Sun Dec 08, 2019 3:03 pm
by ONEEYEMAN
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.

Re: MenuBar in macOS Catalina

Posted: Sun Jan 26, 2020 10:28 pm
by chrism238
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,

Re: MenuBar in macOS Catalina

Posted: Sun Jan 26, 2020 11:39 pm
by ONEEYEMAN
Hi,
Does it makes a difference if you set a minimum OSX to be 10.9?

Thank you.

Re: MenuBar in macOS Catalina

Posted: Tue Jan 28, 2020 3:52 am
by chrism238
ONEEYEMAN wrote:
Sun Jan 26, 2020 11:39 pm
Hi,
Does it makes a difference if you set a minimum OSX to be 10.9?
Thanks for the suggestion.
Unfortunately, no difference when configuring with --with-macosx-version-min=10.9
or even when omitting it entirely.

Chris.

Re: MenuBar in macOS Catalina

Posted: Tue Jan 28, 2020 3:42 pm
by ONEEYEMAN
Hi,
You did the complete and full rebuild, right? Or simply build in the fresh new directory?

Thank you.

Re: MenuBar in macOS Catalina

Posted: Wed Jan 29, 2020 5:48 am
by chrism238
ONEEYEMAN wrote:
Tue Jan 28, 2020 3:42 pm
Hi,
You did the complete and full rebuild, right? Or simply build in the fresh new directory?
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

Posted: Tue Mar 10, 2020 12:02 pm
by thoray
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

Posted: Tue Mar 10, 2020 2:29 pm
by ONEEYEMAN
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.

Re: MenuBar in macOS Catalina

Posted: Tue Mar 10, 2020 2:45 pm
by thoray
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

Re: MenuBar in macOS Catalina

Posted: Mon Mar 16, 2020 9:23 am
by libertywarrior
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.