MenuBar in macOS Catalina

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
raulcatena
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Sep 21, 2019 11:08 am

MenuBar in macOS Catalina

Post 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,
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: MenuBar in macOS Catalina

Post 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
Use the source, Luke!
raulcatena
In need of some credit
In need of some credit
Posts: 2
Joined: Sat Sep 21, 2019 11:08 am

Re: MenuBar in macOS Catalina

Post 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
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MenuBar in macOS Catalina

Post 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.
armin.sch
In need of some credit
In need of some credit
Posts: 1
Joined: Wed Nov 06, 2019 9:21 am

Re: MenuBar in macOS Catalina

Post 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.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MenuBar in macOS Catalina

Post 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.
chrism238
Earned a small fee
Earned a small fee
Posts: 20
Joined: Sun Feb 17, 2013 6:45 pm

Re: MenuBar in macOS Catalina

Post 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,
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MenuBar in macOS Catalina

Post by ONEEYEMAN »

Hi,
Does it makes a difference if you set a minimum OSX to be 10.9?

Thank you.
chrism238
Earned a small fee
Earned a small fee
Posts: 20
Joined: Sun Feb 17, 2013 6:45 pm

Re: MenuBar in macOS Catalina

Post 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.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MenuBar in macOS Catalina

Post by ONEEYEMAN »

Hi,
You did the complete and full rebuild, right? Or simply build in the fresh new directory?

Thank you.
chrism238
Earned a small fee
Earned a small fee
Posts: 20
Joined: Sun Feb 17, 2013 6:45 pm

Re: MenuBar in macOS Catalina

Post 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.
thoray
Knows some wx things
Knows some wx things
Posts: 48
Joined: Sun Oct 18, 2015 9:31 am

Re: MenuBar in macOS Catalina

Post 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?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: MenuBar in macOS Catalina

Post 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.
thoray
Knows some wx things
Knows some wx things
Posts: 48
Joined: Sun Oct 18, 2015 9:31 am

Re: MenuBar in macOS Catalina

Post 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
libertywarrior
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Mar 16, 2020 9:16 am

Re: MenuBar in macOS Catalina

Post 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.
Post Reply