Interdependent widgets

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Interdependent widgets

Bernat Romagosa
Hi list,

Is there a way to get two widgets to depend on each other?

Thanks!

Bernat Romagosa.
Reply | Threaded
Open this post in threaded view
|

Re: Interdependent widgets

sebastien audier

Hi Bernat, yes, for example with "WidgetA":

initialize
        super initialize.
        self addDependentWidget: self widgetB

when "WidgetA" will be markDirty, "WidgetB" will also.

--
Sébastien AUDIER

ObjectFusion S.A.R.L.
Applications web, consulting, design
http://www.objectfusion.fr
Reply | Threaded
Open this post in threaded view
|

Re: Interdependent widgets

Bernat Romagosa
Sorry, I think I didn't express myself very well :)

I meant two widgets that are bidirectionally dependent, so that when widgetA is updated widgetB is also updated, and when widgetB is updated widgetA is also updated.

So far, I've solved it by using announcements, is there an Iliad way to do it? :)

2011/5/24 sebastien audier <[hidden email]>

Hi Bernat, yes, for example with "WidgetA":

initialize
        super initialize.
        self addDependentWidget: self widgetB

when "WidgetA" will be markDirty, "WidgetB" will also.

--
Sébastien AUDIER

ObjectFusion S.A.R.L.
Applications web, consulting, design
http://www.objectfusion.fr

Reply | Threaded
Open this post in threaded view
|

Re: Interdependent widgets

sebastien audier
um, the only time I had this case, we have used the annoucements too.

Sorry,
may be that Nicolas will have more luck than me.


--
Sébastien AUDIER

ObjectFusion S.A.R.L.
Applications web, consulting, design
http://www.objectfusion.fr
Reply | Threaded
Open this post in threaded view
|

Re: Interdependent widgets

Nicolas Petton
Nope, announcements are the best way I know to do this.

Cheers,
Nico

Le mardi 24 mai 2011 à 19:01 +0200, sebastien audier a écrit :

> um, the only time I had this case, we have used the annoucements too.
>
> Sorry, may be that Nicolas will have more luck than me.
>
>
> --
> Sébastien AUDIER
>
> ObjectFusion S.A.R.L.
> Applications web, consulting, design
> http://www.objectfusion.fr

--
Nicolas Petton
http://www.nicolas-petton.fr