mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added support for native OSX recent files menu - to enable it, see the MenuBarModel::setMacMainMenu() method, and re-save your project using this version of the introjucer.
This commit is contained in:
parent
7850bebd47
commit
f13621a78d
27 changed files with 2532 additions and 124 deletions
|
|
@ -146,9 +146,13 @@ public:
|
|||
menu bar model will be used to invoke it, and in the menuItemSelected() callback
|
||||
the topLevelMenuIndex parameter will be -1. If you pass in an extraAppleMenuItems
|
||||
object then newMenuBarModel must be non-null.
|
||||
|
||||
If the recentItemsMenuName parameter is non-empty, then any sub-menus with this
|
||||
name will be replaced by OSX's special recent-files menu.
|
||||
*/
|
||||
static void setMacMainMenu (MenuBarModel* newMenuBarModel,
|
||||
const PopupMenu* extraAppleMenuItems = nullptr);
|
||||
const PopupMenu* extraAppleMenuItems = nullptr,
|
||||
const String& recentItemsMenuName = String::empty);
|
||||
|
||||
/** MAC ONLY - Returns the menu model that is currently being shown as
|
||||
the main menu bar.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue