On Jan 12, 2006, at 6:06 PM, Paul McNett wrote:

So you don't have plans to let people create a .cdxml file that has a non-form root? Such as saving a custom button class or even a panel with sub-objects, and you won't necessarily be adding that object directly to a form?

Yes, of course. But the code to walk the XML/dict hierarchy is in two places: when it's added to the Designer (since Designer- specific mixins need to be, well, mixed-in), and in the form when a saved design is run. You seem to be describing heterorgenous mixing, where someone would be coding a form by hand and dropping in a saved class. You certainly could do that, but not via addObject(); just call the form method instead. If that's the case, I would probably rename the method from _addChildren() to plain old addChildren(), or even addObjectXML(). On second thought, we could even do an end- around in addObject() like we do in MainFormClass - detect that it's XML, and call the appropriate methods instead of doing it directly.


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to