[MacRuby-devel] Help subclassing NSXMLElement
Robert Rice
rice.audio at pobox.com
Sun Jan 9 15:46:56 PST 2011
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 at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110109/0b74f5d7/attachment.html>
More information about the MacRuby-devel
mailing list