Re: macOS Default Menu Handling

Lauri Nurmi <[email protected]> Wed, 3 Jun 2026 15:04:41 +0300 (EEST)
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-973542836-1780488283=:183320
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: quoted-printable

On Sun, 31 May 2026, Ryan Ogurek wrote:

> Oh, nevermind.
> I'm not sure why I was thinking changing the `s_macAboutMenuItemId` would=
 change anything...
>=20
> Indeed, the label is replaced in any case, afaics, which seems to wholly =
defeat the (relevant bits of) logic in
> CreateAppleMenu().
>=20
> So, what's going on here?
>=20
> On Sunday, May 31, 2026 at 10:10:07=E2=80=AFPM UTC-4 Ryan Ogurek wrote:
>       Hello,
> I've been looking at the way wxWidgets handles the macOS "default" items =
like "About" and "Preferences,"
> and I'm a bit confused by it, stepping through the code with a debugger a=
 bit.
>=20
> I see CreateAppleMenu() and MacInstallMenuBar() in menu_osx.cpp, where in=
 the former the About and
> preferences items are added unconditionally (if the static item ids are s=
et) to a menu added to all menu
> bars (afaics).

There's an open issue about this, with some analysis and discussion:=20
https://github.com/wxWidgets/wxWidgets/issues/16888

--=20
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---=20
You received this message because you are subscribed to the Google Groups "=
wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/b2=
5464d6-4d6a-985d-27cc-4eead19fe4a2%40iki.fi.

--8323329-973542836-1780488283=:183320--