cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1970) MainViewController cannot override pathForResource
Date Thu, 06 Dec 2012 20:09:09 GMT

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

Shazron Abdullah commented on CB-1970:
--------------------------------------

The reason it can't be set after is, plugins are initialized with a reference to the commandDelegate,
so setting it after does not update the plugin references. What I could do however is override
setCommandDelegate in CDVViewController and update the plugins as well when the variable is
re-set.
                
> MainViewController cannot override pathForResource
> --------------------------------------------------
>
>                 Key: CB-1970
>                 URL: https://issues.apache.org/jira/browse/CB-1970
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>         Environment: iOS 5.1, iOS Simulator 4.3, 5.0, 5.1 & 6.0
>            Reporter: Michael Richey
>            Assignee: Shazron Abdullah
>
> Attempting to override CDVCommandDelegateImpl.m pathForResource method within MainViewController.m
using the provided override methods, all overrides work except for pathForResource.
> My simple test was to uncomment all of the overrides and add an NSLog to each before
the existing code.  Each of: getCommandInstance, execute, and registerPlugin work as expected
- but pathForResource executes the original method from CDVCommandDelegateImpl.m

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message