You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/02/21 15:00:14 UTC

[jira] [Resolved] (CB-2502) iOS: CDVViewController's commandDelegate property should be typed to the protocol

     [ https://issues.apache.org/jira/browse/CB-2502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-2502.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6.0
         Assignee: Andrew Grieve  (was: Shazron Abdullah)

commit: https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=commit;h=59b6066a39da49fcdb34dd6ad7653561fed5db32
                
> iOS: CDVViewController's commandDelegate property should be typed to the protocol
> ---------------------------------------------------------------------------------
>
>                 Key: CB-2502
>                 URL: https://issues.apache.org/jira/browse/CB-2502
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Kevin Hawkins
>            Assignee: Andrew Grieve
>            Priority: Minor
>             Fix For: 2.6.0
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> CDVViewController's commandDelegate property is typed as CDVCommandDelegateImpl, the concrete implementation of the CDVCommandDelegate protocol.  From an object-oriented design standpoint, we want to property to conform to the protocol API, not the implementation.  This would come into play particularly if a consumer was providing their own implementation of the protocol, as an override to the parent class's definition.

--
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