Interdependent widgets

classic Classic list List threaded Threaded
5 messages Options
Bernat Romagosa Bernat Romagosa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Interdependent widgets

Hi list,

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

Thanks!

Bernat Romagosa.
sebastien audier sebastien audier
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Interdependent widgets


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
Bernat Romagosa Bernat Romagosa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Interdependent widgets

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

sebastien audier sebastien audier
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Interdependent widgets

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 Nicolas Petton
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Interdependent widgets

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

Loading...