Store menus titles in menus themselves in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Dec 2010 15:02:45 +0000 (15:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Dec 2010 15:02:45 +0000 (15:02 +0000)
commit46405e36bf9962b251e77e5048e96bf6a54edb15
treec0ad9b88d0ee744ffdc16cf50434b27aa1a0fc88
parent8a1459665d29fb62f9a89571bd6e0a2d27b05cf0
Store menus titles in menus themselves in wxOSX.

Get rid of wxMenuBar::m_titles array which doesn't seem to be needed and just
store the titles in the menus themselves instead. This makes wxMenu::GetTitle()
work as in the other ports and fixes unit test failures in menu test.

It also makes it unnecessary to duplicate the base class Find[Menu]Item()
methods in wxOSX wxMenuBar so simply remove them entirely.

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