[MacRuby-devel] [MacRuby] #239: NSXML classes cannot be modified properly
MacRuby
ruby-noreply at macosforge.org
Wed Aug 26 14:51:33 PDT 2009
#239: NSXML classes cannot be modified properly
------------------------------+---------------------------------------------
Reporter: kourge@… | Owner: lsansonetti@…
Type: defect | Status: closed
Priority: major | Milestone: MacRuby 0.5
Component: MacRuby | Resolution: fixed
Keywords: |
------------------------------+---------------------------------------------
Changes (by lsansonetti@…):
* status: new => closed
* resolution: => fixed
* milestone: MacRuby 0.4 => MacRuby 0.5
Comment:
Seems to be fixed in trunk.
{{{
$ cat t.rb
doc = NSXMLDocument.alloc.initWithXMLString "<root></root>", options: 0,
error: nil
doc.nodesForXPath("root", error: nil)
doc.nodesForXPath("root", error: nil)[0].XMLString
class NSXMLDocument
def find(path); self.nodesForXPath(path, error: nil); end
end
p doc.find "root"
$ ./miniruby t.rb
[#<NSXMLElement:0x2000241a0>]
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/239#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list