Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F0ACD572 for ; Thu, 6 Dec 2012 20:07:13 +0000 (UTC) Received: (qmail 88497 invoked by uid 500); 6 Dec 2012 20:07:12 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 88464 invoked by uid 500); 6 Dec 2012 20:07:12 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 88456 invoked by uid 500); 6 Dec 2012 20:07:12 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 88451 invoked by uid 99); 6 Dec 2012 20:07:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 20:07:12 +0000 Date: Thu, 6 Dec 2012 20:07:12 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-1970) MainViewController cannot override pathForResource MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13512061#comment-13512061 ] Shazron Abdullah commented on CB-1970: -------------------------------------- Hmm, this won't work -- we can't set the commandDelegate after it has been initialized, we have to set it beforehand. I will have to add a special initWithCommandDelegate function for this reason. > 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