Hi Laurent: I switched from using REXML to NSXML. NSXML is trickier to use but considerably faster than REXML. The subclassing capability would make my app even faster if I can figure out how to use it. I doubt there is a problem except that the NSXMLFidelityElement class is not mentioned in the documentation. I would like to see a MacRuby example that subclasses NSXMLElement. Thanks, Bob Rice On Jan 9, 2011, at 5:23 PM, Laurent Sansonetti wrote:
Hi Robert,
Could you reduce the problem to a simple script and paste the code here?
Thanks, Laurent
On Jan 9, 2011, at 11:47 AM, Robert Rice wrote:
I've been trying to subclass NSXMLElement in MacRuby without success. I have implemented NSXMLDocument.replacementClassForClass returning my custom subclass to replace NSXMLElement but the parser returns NSXMLFidelityElement instances rather than my custom class instances.
Has anyone done this in MacRuby?
Thanks, Bob Rice
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel