> The real point is that to call public methods, you have to know about the > object whose method you want to call and you need to know about the method > itself. When you broadcast an event, you don't need to know whose listening, > your just indicating that something meaningful has happenned and perhaps > also passing data that is meaningful.
This is really the key. If you don't do this, you're baking dependencies into your application. > That said, for small systems I still sometimes use callbacks. Me too, but I feel dirty afterward. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

