[MacRuby-devel] Help subclassing NSXMLElement

Matt Aimonetti mattaimonetti at gmail.com
Sun Jan 9 16:02:25 PST 2011


Bob,

Could you share some of your code so maybe someone can help you?

Thanks,

- Matt

On Sun, Jan 9, 2011 at 3:46 PM, Robert Rice <rice.audio at pobox.com> wrote:

> 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
>
>
>
> _______________________________________________
> 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/c9e17eaf/attachment.html>


More information about the MacRuby-devel mailing list