cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10087) OSX: facilitate easy preferences menu item handling
Date Thu, 26 Nov 2015 06:53:10 GMT

    [ https://issues.apache.org/jira/browse/CB-10087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15028279#comment-15028279
] 

ASF subversion and git services commented on CB-10087:
------------------------------------------------------

Commit a4e66ddff525ac9c8927349701eb2e35d44937d2 in cordova-osx's branch refs/heads/master
from [~tripod]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-osx.git;h=a4e66dd ]

CB-10087 OSX: facilitate easy preferences menu item handling


> OSX: facilitate easy preferences menu item handling
> ---------------------------------------------------
>
>                 Key: CB-10087
>                 URL: https://issues.apache.org/jira/browse/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:
> {noformat}
>     NSMenu* appMenu = self.viewController.window.menu;
>     NSMenu* mainMenu = [appMenu itemAtIndex:0].submenu;
>     for (NSMenuItem* item in mainMenu.itemArray) {
>         if (item.action == @selector(onPreferences:)) {
>             // adjust target to use this plugin
>             item.target = self; 
>             break;
>         }
>     }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message