Re: ChildChange vs ChildAdded, ChildRemoved
David Crawshaw <[email protected]> Mon, 12 Apr 2004 22:44:19 +1000
| Newsgroups | gmane.comp.java.xwt.core |
|---|---|
| Message-ID | <[email protected]> |
On 12/04/2004, at 6:12 PM, Adam Megacz wrote: > How about numchildren++=function()? No good. ChildAdded/Removed is useful because it gives a reference to the new/old child. To remain semantically sane, numchildren++= must be passed an integer of the new size, which is close to useless. How do you work out what the new child is? The biggest use of ChildAdded/Removed is to add traps to children. It's how parents find out about events. -- d