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

Matt Grande edited comment on CB-8037 at 11/18/14 5:45 PM:
-----------------------------------------------------------

Now, I'm far from an Objective-C expert, but if I'm reading this correctly, the 
fix should be changing this:

{{result toSuccessCallbackString:callbackId}}

to this:

{{self.commandDelegate sendPluginResult:result callbackId:callbackId}}

If that's accurate, I can issue a pull request on github if you'd like?

*Edit* Upon further investigation, the return type of that method is void, so I 
clearly don't know what I'm talking about.


was (Author: mattgrande):
Now, I'm far from an Objective-C expert, but if I'm reading this correctly, the 
fix should be changing this:

{{result toSuccessCallbackString:callbackId}}

to this:

{{self.commandDelegate sendPluginResult:callbackId}}

If that's accurate, I can issue a pull request on github if you'd like?

> Deprecation warning in Media plugin (CDVSound.m
> -----------------------------------------------
>
>                 Key: CB-8037
>                 URL: https://issues.apache.org/jira/browse/CB-8037
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 3.6.3
>            Reporter: Matt Grande
>
> Note: For version, I included my crrently installed version of Cordova. I'm 
> currently using the Media plugin 0.2.13, but the problem persists in 0.2.14.
> XCode is giving me a deprecation warning in {{CDVSound.m}}. The message is:
> bq. 'toSuccessCallbackString:' is deprecated: Deprecated in Cordova 3.6. Use 
> CDVCommandDelegate method sendPluginResult:callbackId instead. This will be 
> removed in 4.0.0
> And here is the offending line in {{getCurrentPositionAudio}}:
> {{NSString* jsString = \[NSString 
> stringWithFormat:@"%@(\"%@\",%d,%.3f);\n%@", 
> @"cordova.require('org.apache.cordova.media.Media').onStatus", mediaId, 
> MEDIA_POSITION, position, \[result toSuccessCallbackString:callbackId\]\];}}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to