Remove unnecessary duplicate code dealing with invoking window from wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Apr 2010 20:39:44 +0000 (20:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 24 Apr 2010 20:39:44 +0000 (20:39 +0000)
commit6a57bd93ad118049af9a5b2c07e01254f625f6a2
treea5cebe00813840032a248abecde79ef8d1cb4436
parent394cfde3cf78553b1356167bbf917e21767eb546
Remove unnecessary duplicate code dealing with invoking window from wxOSX.

This is roughly the same as r64127 for wxGTK but for wxOSX: don't duplicate
the functionality already present in the base class in Mac-specific way. Just
use wxMenu::GetWindow() instead of painstakingly propagating invoking window
changes via the entire menu hierarchy.

Also attach the root menu used in wxOSX to the menu bar to ensure that the
correct window can be found for all its menus.

Closes #11990.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/osx/menu.h
src/osx/carbon/frame.cpp
src/osx/menu_osx.cpp