Well, I use it sometimes as an update broadcast mecanism. Let's say I
have some value objects floating around, and when I change a property on
any of these, I use the watch to broadcast an event if for example the
value has changed (by testing the newValue and the oldValue).
It can be sometimes useful for some little and simple tasks that don't
rely on a heavy process, like applying watches on global vars.
Of course, you can do all of this without using the watch function, it's
just a matter of design, choice and code comfort :)
Julien
Stephen Ford a écrit :
How often do you use 'watch' in your applications?.
It seems pretty powerful to me, and I've only just discovered it.
Any thoughts on this.
Cheers,
Stephen._______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com