class HelloApp
attr_accessor :label, :text_field, :button
def clickedButton(sender)
# implementation
your_name = self.text_field.stringValue
self.label.stringValue = "Hello, #{your_name}"
end
end
The above code is in HelloApp.rb The problem is when I type something into the textbox, and click the button, the label just says "Hello, " and not "Hello, namegoeshere" I am using MacRuby .4 by the way.