[
https://issues.apache.org/jira/browse/CB-11670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410255#comment-15410255
]
Tobias Bocanegra commented on CB-11670:
---------------------------------------
in order to change the menus, you need to edit the {{MainViewController.xib}}
and add/remove the menu items you desire. But then you also need to provide the
action handlers, which have to be in objc, for example call your JS code from
there. As this all is not so easy, there is no simple way of controlling this
via config file. Maybe you could create a plugin that manipulates the main menu.
As a side note: the OSX cordova port is mainly targeted for kiosk like apps,
that run fullscreen and have no desktop interaction. Similar to the mobile
apps, which don't have menus either. if you need a more sophisticated cross
platform javascript framework for building desktop apps, I suggest to look into
[electron|http://electron.atom.io/]
> Config.xml option to disable/change top menu items, icons
> ---------------------------------------------------------
>
> Key: CB-11670
> URL: https://issues.apache.org/jira/browse/CB-11670
> Project: Apache Cordova
> Issue Type: Bug
> Components: OSX
> Environment: Mac OSX Elcapitan
> Reporter: Abhishek Jha
> Assignee: Tobias Bocanegra
> Labels: documentation, easyfix
>
> Hello,
> By default the cordova-osx app loads with a pre-assumed icon, pre-assumed top
> menu with edit, search etc but not everybody needs them. Infact we need the
> ability to change these from any of these ways in our cordova code:
> 1. be it js
> 2. or html meta tags
> 3. or config.xml
> So that our app can use only things we want.
> This request is keeping in mind that people using cordova-osx have only
> html/css/js/cordova experience and no experience in xcode or objective-c.
> And also for the short term until this is fixed, please tell me how to change
> the menu, icons etc in cordova-osx from xcode or whatever and put it in the
> github/documentation so that people dont ask same question again.
> Thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]