Hello Christian,
sounds not too bad for me. Especially that its just a wrapper method
in the mixin so ill not it as a suggestion and take care of it when im
working on data binding the next time.
Thanks,
Martin
Am 10.07.2009 um 16:11 schrieb panyasan:
>
>
>
> Martin Wittemann wrote:
>>
>> Hi,
>>
>> thats good to hear that the data binding layer helped you
>> implementing
>> your qcl. Your proposal sound interesting. Do you think of something
>> like:
>>
>> a.bind(b) === b.observe(a)
>>
>> Greetings,
>> Martin
>>
>> Am 10.07.2009 um 13:40 schrieb panyasan:
>>> And one proposal for the
>>> databinding API: it seems to make sense to me to add an observe()
>>> method
>>> that is the exact opposite of bind() just like in the qcl xml
>>> markup. It
>>> would be nothing but syntactic sugar but add readability to the
>>> qooxdoo
>>> code.
>>
>>
>
> Yes, exactly. There is a technology in XUL that is related :
> broadcasters
> and observers
>
>
>
https://developer.mozilla.org/En/XUL_Tutorial/Broadcasters_and_Observers>
> although the implementation differs from qcl.
>
> The syntax could be
>
> a.bind("property1",b,"property2") ===
> b.observe("property2",a,"property1")
>
> or one could even make the third argument optional if the
> properties are
> equal:
>
> a.bind("enabled",b) === b.observe("enabled",a);
>
> I find it a bit easier to read the code thinking along the lines of
> objects
> which "bind" other objects (active) and objects which "observe" other
> objects (passive).
>
> Thanks, C.
> --
> View this message in context:
http://www.nabble.com/New-tutorial%3A-How-to-create-a-client-server-application-with-qooxdoo%2C-qcl-and-QxTransformer-tp24412896p24428251.html> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited
> time,
> vendors submitting new applications to BlackBerry App World(TM) will
> have
> the opportunity to enter the BlackBerry Developer Challenge. See
> full prize
> details at:
http://p.sf.net/sfu/Challenge> _______________________________________________
> qooxdoo-devel mailing list
>
qooxdoo-devel@...
>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at:
http://p.sf.net/sfu/Challenge_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel