Re: [MacRuby-devel] [MacRuby] #244: String.name should return "String" and not "NSMutableString"

2009-04-21 Thread MacRuby
#244: String.name should return "String" and not "NSMutableString" ---+ Reporter: carller...@… | Owner: lsansone...@… Type: defect | Status: new Priority: block

Re: [MacRuby-devel] [MacRuby] #244: String.name should return "String" and not "NSMutableString"

2009-04-21 Thread MacRuby
#244: String.name should return "String" and not "NSMutableString" ---+ Reporter: carller...@… | Owner: lsansone...@… Type: defect | Status: new Priority: block

[MacRuby-devel] [MacRuby] #244: String.name should return "String" and not "NSMutableString"

2009-04-21 Thread MacRuby
#244: String.name should return "String" and not "NSMutableString" ---+ Reporter: carller...@… | Owner: lsansone...@… Type: defect | Status: new Priority: block

Re: [MacRuby-devel] hpricot and MacRuby

2009-04-21 Thread s.ross
Doesn't Nokogiri presume libxml? Is that present on a reg'lar old Mac, right out of the box? Meantime, I'll check out the XML parser. The whole Web service thing is so incredibly useful, but such a PITA because nobody packages or parses XML the same way twice :) Thanks for the quick answe

Re: [MacRuby-devel] hpricot and MacRuby

2009-04-21 Thread Gavin Bell
Hi Steve Known problem see http://lists.macosforge.org/pipermail/macruby-devel/2009-February/001183.html Planned for 0.5 iirc just joined the list myself and was browsing the archives cheers Gavin On 21 Apr 2009, at 23:00, s.ross wrote: I've been toying around with MacRuby and I'm particularly

Re: [MacRuby-devel] hpricot and MacRuby

2009-04-21 Thread Matt Aimonetti
hpricot uses a C extension which is not compatible with MacRuby yet. I'm planning on working with Aaron Patterson who wrote nokogiri during RailsConf. The hope is to have nokogiri compatible with macruby 0.5 pretty soon. In the mean time, HotCocoa has a XML parser which works pretty well, check the

[MacRuby-devel] hpricot and MacRuby

2009-04-21 Thread s.ross
I've been toying around with MacRuby and I'm particularly interested in the MVC stuff that's been mentioned of late. I decided to do a proof of concept that consumes an XML-RPC Web service and wanted to parse it using hpricot. But... the gem won't build. Questions: Is it just me or has this

Re: [MacRuby-devel] NoMethodError for button#on_action in HotCocoa

2009-04-21 Thread Matt Aimonetti
on_action needs to point to a block: :on_action{l.text = "some text"} or :on_action => :do_stuff def do_stuff Proc.new { puts "stuff" } end You can also do: :on_action => method(:do_stuff) Which I believe won't require a block in your method. - Matt On Tue, Apr 21, 2009 at 1:39 AM, F

Re: [MacRuby-devel] NoMethodError for button#on_action in HotCocoa

2009-04-21 Thread Frisco Del Rosario
I found I could fix one problem by moving the label and button declarations outside the layout_view block: w = window(:title => "Window", :size => [300,150]) l = label(:text_align => :center, :text => "", :layout => {:expand => [:width, :height], :align => "center"}) btn = button(:title => "

[MacRuby-devel] NoMethodError for button#on_action in HotCocoa

2009-04-21 Thread Frisco Del Rosario
Got two unexpected results from running this script in HotConsole: require 'hotcocoa' include HotCocoa w = window(:title => "Window", :size => [220,100]) $lv = layout_view :frame => [0,0,200,80], :layout => {:expand => [:width, :height], :align => :center, :start => true} do |view| view <<