cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra (JIRA)" <>
Subject [jira] [Created] (CB-10087) OSX: facilitate easy preferences menu item handling
Date Thu, 26 Nov 2015 06:45:11 GMT
Tobias Bocanegra created CB-10087:

             Summary: OSX: facilitate easy preferences menu item handling
                 Key: CB-10087
             Project: Apache Cordova
          Issue Type: Improvement
          Components: OSX
    Affects Versions: Master
            Reporter: Tobias Bocanegra
            Assignee: Tobias Bocanegra

currently it is not easy possible to capture the applications preferences menu item, except
via the title, which is a bit unstable.

either we define a tag value or a predefined action selector that can be detected. for example:

    NSMenu* appMenu =;
    NSMenu* mainMenu = [appMenu itemAtIndex:0].submenu;

    for (NSMenuItem* item in mainMenu.itemArray) {
        if (item.action == @selector(onPreferences:)) {
            // adjust target to use this plugin
   = self; 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message