Data Binding

dunbarx at aol.com dunbarx at aol.com
Thu Mar 31 00:10:28 EDT 2011


Hi.


 I do not think there is a native message similar to the "nameChanged" or "selectionChanged", in other words, a "propChanged". This would track any modification to a property and trigger a handler.


But the setProp and getProp control structures can handle this, I think.




Craig Newman 





-----Original Message-----
From: Todd Geist <todd at geistinteractive.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Mar 30, 2011 11:49 pm
Subject: Data Binding


Thanks everyone for answering my earlier questions on adapting MVC to rev.
 I have moved on to one more.  Although this one isn't really MVC.

A couple of the frameworks I have used have a concept called "data binding".
 This usually means something along the lines of when one property changes
another property is automatically updated.  The two properties are said to
be "Bound".  I like this concept and it seems like something that could be
useful to Live Code.

It seems that you could broadcast the change of a property of an object. And
other objects could listen for that change, and update themselves
accordingly.

Again, in effort to avoid re-inventing the wheel, I am curious if there any
one has tried this sort of thing and if it proved useful.

Thanks

Todd

Todd Geist
------------------------------
geist interactive <http://www.geistinteractive.com>
805-419-9382
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list