Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2010959E for ; Wed, 7 Mar 2012 17:27:21 +0000 (UTC) Received: (qmail 39613 invoked by uid 500); 7 Mar 2012 17:27:21 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 39592 invoked by uid 500); 7 Mar 2012 17:27:21 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 39584 invoked by uid 99); 7 Mar 2012 17:27:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 17:27:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 17:27:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DF19FE2F8 for ; Wed, 7 Mar 2012 17:26:57 +0000 (UTC) Date: Wed, 7 Mar 2012 17:26:57 +0000 (UTC) From: "Filip Maj (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1638473216.34895.1331141217915.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1529214763.44577.1329358380552.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-254) All input parameters in iOS backend methods are strings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224521#comment-13224521 ] Filip Maj commented on CB-254: ------------------------------ So given this is fixed with cordova-js integration (is that correct?), can we close this issue? > All input parameters in iOS backend methods are strings > ------------------------------------------------------- > > Key: CB-254 > URL: https://issues.apache.org/jira/browse/CB-254 > Project: Apache Callback > Issue Type: Bug > Components: CordovaJS, iOS > Affects Versions: 1.4.0 > Environment: Xcode 4.2 Mac OS X 10.7 > Reporter: Oleg Gryb > Assignee: Shazron Abdullah > Fix For: 1.6.0 > > > Input parameters in 'arguments' array contain NSString types only, no matter what was passed in JS, > e.g. in JS I can write something like this: > > return PhoneGap.exec(successCallback, > failureCallback, > VPCLASS, > 'method', > ["str", 0, 1]); > > but 'arguments' below will contain NSStrring types @"0" and @"1" instead of integers in the method below > -(void)method:(NSMutableArray *)arguments withDict:(NSMutableDictionary *)options > In Android there was a method data.getInt that I could use to retrieve an integer, but I didn't see anything like that in iOS -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira