You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Andrew Grieve <ag...@google.com> on 2012/10/03 21:14:52 UTC
What does CDVCommandDelegate do?
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=blob;f=CordovaLib/Classes/CDVCommandDelegate.h;h=fce9b78cfab7c174efe7fcd75537d5bc1c864df0;hb=HEAD
It has not class description :(.
One thought I had was that it is the interface to make available to
plugins, but if this is the case, I'm not sure why CDVViewController has a
commandDelegate property instead of just using self.
Re: What does CDVCommandDelegate do?
Posted by Andrew Grieve <ag...@chromium.org>.
Good stuff. I'll remove the commandDelegate property from CDVViewController
then.
On Wed, Oct 3, 2012 at 4:11 PM, Shazron Abdullah <sh...@gmail.com> wrote:
> Legacy stuff if you go back in AppDelegate history that was not removed
>
> On 2012-10-03, at 12:49 PM, Jesse <pu...@gmail.com> wrote:
>
> > Yeah, this is whack!
> > self.commandDelegate = self;
> >
> >
> >
> > On Wed, Oct 3, 2012 at 12:46 PM, Jesse <pu...@gmail.com> wrote:
> >> The delegate is just meant to define the interface. I am not sure why
> >> CDVViewController both HAS and IS one ...
> >>
> >> On Wed, Oct 3, 2012 at 12:14 PM, Andrew Grieve <ag...@google.com>
> wrote:
> >>>
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=blob;f=CordovaLib/Classes/CDVCommandDelegate.h;h=fce9b78cfab7c174efe7fcd75537d5bc1c864df0;hb=HEAD
> >>>
> >>> It has not class description :(.
> >>>
> >>> One thought I had was that it is the interface to make available to
> >>> plugins, but if this is the case, I'm not sure why CDVViewController
> has a
> >>> commandDelegate property instead of just using self.
> >>
> >>
> >>
> >> --
> >> @purplecabbage
> >> risingj.com
> >
> >
> >
> > --
> > @purplecabbage
> > risingj.com
>
Re: What does CDVCommandDelegate do?
Posted by Shazron Abdullah <sh...@gmail.com>.
Legacy stuff if you go back in AppDelegate history that was not removed
On 2012-10-03, at 12:49 PM, Jesse <pu...@gmail.com> wrote:
> Yeah, this is whack!
> self.commandDelegate = self;
>
>
>
> On Wed, Oct 3, 2012 at 12:46 PM, Jesse <pu...@gmail.com> wrote:
>> The delegate is just meant to define the interface. I am not sure why
>> CDVViewController both HAS and IS one ...
>>
>> On Wed, Oct 3, 2012 at 12:14 PM, Andrew Grieve <ag...@google.com> wrote:
>>> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=blob;f=CordovaLib/Classes/CDVCommandDelegate.h;h=fce9b78cfab7c174efe7fcd75537d5bc1c864df0;hb=HEAD
>>>
>>> It has not class description :(.
>>>
>>> One thought I had was that it is the interface to make available to
>>> plugins, but if this is the case, I'm not sure why CDVViewController has a
>>> commandDelegate property instead of just using self.
>>
>>
>>
>> --
>> @purplecabbage
>> risingj.com
>
>
>
> --
> @purplecabbage
> risingj.com
Re: What does CDVCommandDelegate do?
Posted by Jesse <pu...@gmail.com>.
Yeah, this is whack!
self.commandDelegate = self;
On Wed, Oct 3, 2012 at 12:46 PM, Jesse <pu...@gmail.com> wrote:
> The delegate is just meant to define the interface. I am not sure why
> CDVViewController both HAS and IS one ...
>
> On Wed, Oct 3, 2012 at 12:14 PM, Andrew Grieve <ag...@google.com> wrote:
>> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=blob;f=CordovaLib/Classes/CDVCommandDelegate.h;h=fce9b78cfab7c174efe7fcd75537d5bc1c864df0;hb=HEAD
>>
>> It has not class description :(.
>>
>> One thought I had was that it is the interface to make available to
>> plugins, but if this is the case, I'm not sure why CDVViewController has a
>> commandDelegate property instead of just using self.
>
>
>
> --
> @purplecabbage
> risingj.com
--
@purplecabbage
risingj.com
Re: What does CDVCommandDelegate do?
Posted by Jesse <pu...@gmail.com>.
The delegate is just meant to define the interface. I am not sure why
CDVViewController both HAS and IS one ...
On Wed, Oct 3, 2012 at 12:14 PM, Andrew Grieve <ag...@google.com> wrote:
> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=blob;f=CordovaLib/Classes/CDVCommandDelegate.h;h=fce9b78cfab7c174efe7fcd75537d5bc1c864df0;hb=HEAD
>
> It has not class description :(.
>
> One thought I had was that it is the interface to make available to
> plugins, but if this is the case, I'm not sure why CDVViewController has a
> commandDelegate property instead of just using self.
--
@purplecabbage
risingj.com